Problem with concatenation, need output in a desired format

Hi all,
I have a weird problem with concatenation.
I should get an output in such a way that the result would be
Put C:\TEMP\test20090210.xml /FOLDER1/test20090210.xml
For this first to get C:\TEMP\test20090210.xml format I said
CONCATENATE  'C:\TEMP\test' sy-datum '.XML' INTO filepath.
For this secondly to get /FOLDER1/test20090210.xml format I said
CONCATENATE  '/FOLDER1/test' sy-datum '.XML' INTO filepath1.
Now I need to get the format
Put C:\TEMP\test20090210.xml  /FOLDER1/test20090210.xml
And to get this I said
CONCATENATE  'put' filepath INTO  filepath SEPARATED BY space.
And the output for filepath was Put C:\TEMP\test20090210.xml.
But I want u2026u2026u2026.Put C:\TEMP\test20090210.xml /FOLDER1/test20090210.xml.
How can I achieve this?
If I say
CONCATENATE  filepath INTO  filepath1 SEPARATED BY space. It throws a syntax error saying
u201CUnable to interpret filepathu201D
Please help me..i am dying to figure out how to concatenate and get the required output.
My filepath contains u2026 Put C:\TEMP\test20090210.xml
My filepath1 contains u2026/FOLDER1/test20090210.xml
I need final output asu2026u2026u2026u2026.
Put C:\TEMP\test20090210.xml /FOLDER1/test20090210.xml
How to attain this..please helpu2026where I am going wrong..i declared filepath and filepath1 as STRING

Hi all,
Thanks for immediate reply...now it works..
but i also need to put a counter like thing to distinguish my files.
for my filepath....
i want it as C:\TEMP\test20090210110146 so i said....
CONCATENATE '    C:\TEMP\test'    sy-datum s   y-uzeit  '.XML'.
Actually i am generating XML files and naming them as testsystemdatesystemtime.
But i am concerend that my filed might be overwrriten if a file gets generated in a fraction of a millisecond..so to avoid that now i want to put a counter.
i.e my filepath should now be as follows each time loop executes...
C:\TEMP\test20090210110146_1
C:\TEMP\test20090210110147 _2
C:\TEMP\test20090210110148 _3.........and son on how can i do it
i.e testsystemdatesystemtime+ a counter(which tells how many times loop executed)
Once again thanks to all for immediate help...

Similar Messages

  • Problem with Optical Audio Output

    Hi, all. I'm running my audio out through the optical digital output on my Mac Pro. Recently, I've developed a problem with iTunes, where certain tracks are distorted and others play extremely softly. There is no problem when I run the audio out through the headphone jack...it's only a problem through the optical output.
    Furthermore, when I go to Audio MIDI setup, it says "Output is not supported" for the optical digital output, when I've read that I should be able to make adjustments to it here.
    Does anyone know what might be causing a problem with my optical output? Thanks so much!

    Look in iTunes' "Playback" preferences. Try turning off "Crossfade", "Sound Enhancer", and "Sound Check"/

  • Need output like below mentioned format

    Hi,
    By using below query , iam getting output in the below formate as metioned
    select
    m.year "Year",
    --decode(m.year,like '200%','a') "DG",
    --decode(instr(m.year,'200'),0,Null,'Shallow Water <1000 Feet') "DG",
    --decode(substr('Shallow Water <1000 Feet',1,1),'S','Shallow Water <1000 Feet') "DG1",
    'Shallow Water <1000 Feet' as "Depth Group",
    'Deep Water 1000-5000 Feet' as "Depth Group",
    'Ultra Deep Water > 5000 Feet' as "Depth Group",
    sum(decode(M.FLUID,'O',nvl(M.YEAR_TO_DATE,0)))  "Ytd Oil" ,
    from pden_monthly_prod m,pi_pden_well w,pden p
    ---           Make sure all necessary Table joins are done
    where P.ENTITY=M.ENTITY
    and p.entity = w.entity
    ----        define limitations by column values
    and m.year between 2000 and 2012
    and ((p.entity_type in ('LEASE','WELL') and p.province_state not in ('17','42') and p.pi_situation_cd <> 'F')
    or (p.entity_type = 'ALLOCATED'      and p.province_state in ('17','42')     and p.pi_situation_cd <> 'F')
    or (p.entity_type = 'WELL'              and p.province_state = '42'             and p.pi_situation_cd <> 'F')
    or(p.pi_situation_cd = 'F'))
    and m.fluid in ('O','CN','G','CG','OW','GW','LW','FW') 
    and  nvl(w.water_depth,'0') <1000
    --or w.water_depth between 1000 and 5000
    --or w.water_depth >5000
    --for Federal state only (FOS)
    and P.PI_SITUATION_CD IN ('F','S')
    and p.province_state in ('17','42','60','01')
    group by m.year
                ,'Shallow Water <1000 Feet'
              ,'Deep Water 1000-5000 Feet'
               ,'Ultra Deep Water > 5000 Feet'
    order by m.year
    i am getting output is
    Year    Depth Group       Depth Group      Depth Group Ytd Oil
    2000           a                          b                           c               200
    2001           a                          b                           c               150
    2002           a                          b                           c               110
    2003           a                          b                           c               100
    but i need output like the below format
    Year          Depth Group       Ytd Oil
    2000              a                      200
    2000              b                      200
    2000              c                       200
    2000Total                              600
    2001             a                      150
    2001             b                      150
    2001             c                       150
    2001Total                               450
    2002             a                      110
    2002             b                      110
    2002             c                      110
    2002Total                           330
    2003             a                      100
    2003             b                      100
    2003             c                       100
    2003Total                             300
    could you please help on this ?

    UNPIVOT is equal to:
    with t1 as (select 'a' f1, 1 f2, 2 f3, 3 f4 from dual union all
                select 'b', 4, 5, 6 from dual union all
                select 'c', 7, 8, 9 from dual union all
                select 'd', 10, 11, 12 from dual)
    select a.f1, b.f,
           case b.f
             when 'F2' then a.f2
             when 'F3' then a.f3
             when 'F4' then a.f4
           end res
    from t1 a, (select 'F2' f from dual union all
                select 'F3' f from dual union all
                select 'F4' f from dual) b
    order by 1, 2

  • HT204382 Hi, Ive just got myself a Macbook Pro, and Im having problems with sound on movie files. The format is wmv and they play OK on a windows 7 laptop, and Im trying to play them now on the MAC. The picture is OK , but no sound. I have Flip4Mac - no d

    Hi, Ive just got myself a Macbook Pro, and Im having problems with sound on movie files. The format is wmv and they play OK on a windows 7 laptop, and Im trying to play them now on the MAC. The picture is OK , but no sound. I have Flip4Mac - no diference

    Download and install the free VLC for Mac - that should work:
    http://www.videolan.org/vlc/download-macosx.html

  • Adhoc query-Problem with Personnel no output field

    Hi Gurus,
    We are trying to run an adhoc query using a customized Info set(PNPCE logical database).
    While running the query,we had selected Personnel no(from Payroll status P0003 table) as output field and Company code(from Org assignment P0001) as input field in the selection.
    Problem is in the output field we are seeing the Personnel name details in place of Personnel no.Could anyone please suggest what could be the reason behind this and how to fix it.
    Your help will be highly appreciated.
    Warm Rgds
    Sushil

    Hi Sushil,
    The default output for fields with a text and a value (Name = text, PERNR = value) is the text.  You can change this by right clicking on the output box in Ad Hoc and selecting "Value".  If you want both name and number, select "Value and Text". 
    You can also change this default to Value from Text if in Ad Hoc, you go to Edit --> Settings.  On the last tab, change the radio buttion for output default to Value from Text.  This will change it for all fields so you would see the eight digit number rather than the name of the position or org unit.  Thus, you may want to keep it at Text and use the right click to change specific fields as needed.
    By the way, it is usually best to utilize the personnel number field from IT0000-Actions, although it can be obtained from any infotype if you include that field in the field group when creating your infoset. 
    Paul

  • Problem with tables -- need help!

    I am having problems with table formatting, when using
    Preformatted text. The tables look fine in the WYSIWYG editor, but
    have lots of extra space above and below the text when looking at
    the output files.
    I will attach the code from one of the HTML files from my
    project, so you can see what I'm talking about.
    Thanks.

    Well, if you're talking about the single-celled table with
    the line:
    <p class=Preformatted>[assembly:
    Ace.AceAssembly]</p>
    </pre>
    ... you can eliminate the <P> tags. that will give you
    one line less. Otherwise, your remaining space is the result of the
    <PRE> tag. It, like the <XMP> tag, gives it one line of
    space beneath as well.
    Your alternative beyond that would be to, when needed, wrap
    up the script in Javascript. That line, for instance, wouldn't need
    it.

  • Problems with Concatenating Binary Data

    Hi
    I am experiencing a problem with the unreliable concatenation of binary data.
    I have a stored procedure that I wrote to perform cell encryption on long text fields (> 4000 characters in length). This takes the string, splits it into chunks of a set length, encrypts and concatenates the encrypted chunks into a varbinary(max) variable.
    It then stores the length of the encrypted chunk at the beginning of the data (the length of output when encrypting strings of a set length is always be the same), e.g.
    DECLARE @output VARBINARY(MAX), @length INT
    SELECT @length = LEN(@encryptedchunk1)
    SELECT @output = CONVERT(binary(8), @length) + @encryptedchunk1 + @encryptedchunk2 + @encryptedchunk3 + ...
    So far so good, and when I decrypt the data, I can read the first 8 bytes of data at beginning of the binary data to get the length of the chunk:
    -- get the length of the encrypted chunk
    SELECT @length = CONVERT(INT, CONVERT(binary(8), LEFT(@encrypteddata, 8)))
    -- then remove the first 8 bytes of data
    SELECT @encrypteddata = CONVERT(VARBINARY(MAX), RIGHT(@encrypteddata, LEN(@encrypteddata) - 8))
    <snip> code to split into chunks of length @length and decrypt
    </snip>
    This is where I am experiencing an issue. 99.4% of the time, the above code is reliable. However, 0.6% of the time this fails for one of two reasons:
    the length is stored incorrectly. The length of the encrypted chunks is usually 4052 and substituting 4052 for the returned value (4051) allows the encrypted chunks to be decrypted.
    the encrypted data sometimes starts at offset 8 instead of 9. The @length variable is correctly read at length 8 but only 7 bytes should be removed from the start, e.g.
    SELECT @length = CONVERT(INT, CONVERT(binary(8), LEFT(@encrypteddata, 8)))
    SELECT @encrypteddata = CONVERT(VARBINARY(MAX), RIGHT(@encrypteddata, LEN(@encrypteddata) - 7))
    Has anyone any ideas on why this is happening and how the process can be made more reliable?
    Julian

    Use datalength, not len. Len() is designed for character strings and will ignore trailing bytes. And count characters. Datalength does exactly what you want: it counts bytes. Look at this:
    DECLARE @b varbinary(200)
    SELECT @b = 0x4142434420202020
    SELECT @b, len(@b), datalength(@b)
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Problem with inheritance and outputting values in toString.

    Hey guys, i'm having a major problem with inheritances.
    What i'm trying to do with my program is to create objects in my demo class. Values are passed to several other objects that each do their own calculations of grades and results and then outputs the result in my toString. I followed step by step the instructions in my book on how to setup the inheritance and such. I can only output everything that was created in my superclass, any other thing that was created in an object that belongs to a subclass does not display in the output at all.
    Even if I change or create new instance variables, I can't figure out for the life of myself how to output the other values.
    Because there's so much code to be splitting on the forums, I zipped my whole project in a RAR. I'll link it here
    http://www.4shared.com/file/ZleBitzP/Assign7.html
    The file to run the program is CourseGradesDemo class, everything else is either a subclass or superclass to some part of the program. After you run CourseGradesDemo, you will see the output, and understand what displays and what stays at 0.0 value. If anyone can help me out with this it would be greatly appreciated
    Thanks in advance.

    Basshunter36 wrote:
    Hey guys, i'm having a major problem with inheritances.
    What i'm trying to do with my program is to create objects in my demo class. Values are passed to several other objects that each do their own calculations of grades and results and then outputs the result in my toString. I followed step by step the instructions in my book on how to setup the inheritance and such. I can only output everything that was created in my superclass, any other thing that was created in an object that belongs to a subclass does not display in the output at all.
    Even if I change or create new instance variables, I can't figure out for the life of myself how to output the other values.No idea what you're talking about. Provide an [url http://sscce.org]SSCCE.
    Because there's so much code to be splitting on the forums, I zipped my whole project in a RAR. I'll link it here
    http://www.4shared.com/file/ZleBitzP/Assign7.html
    Not gonna happen. Provide an [url http://sscce.org]SSCCE. And don't say you can't. You definitely can. You may have to spend an hour building a new program from scratch and getting it to reproduce the problem, but if you can't or won't do that, you'll find few people here willing to bother with it.

  • Problem with Alt Text output from thumbnail image of Lightbox widget

    I’m having a problem with the Lightbox widget not producing alternative text based on the image properties.  I’ve set ALT text for the image properties on both the larger Ligtbox image as well as the thumbnail.  But the HTML output from Muse does not include the ALT text on the thumbnail version of the image.  Here’s an example:
        <div class="popup_anchor">
           <div class="Thumb popup_element clearfix" id="u4409"><!-- group -->
            <a class="anchor_item grpelem" id="untitled"></a>
            <div class="grpelem" id="u4433"><!-- image -->
             <img id="u4433_img" src="/images/n0060292x292.jpg" alt="" width="292" height="292" />
    This may be a problem that came in a previous release of Muse.  I have a few older examples where ALT text is produced, but it’s no longer updated if I update the Image Properties.

    I'm seeing the same problem. Looks like a bug to me. Any ideas as to how we can get this on Adobe's bug fix list?

  • Problem with sysdba need help

    I faced a difficult problem with sysdba. The thing is, I don't have a user name " 1/2@3 ". But the moment I connected as 1/2@3 as sysdba, then it connected automatically and to utter surprise I could drop a user.
    If it is so, then how the database will remain secure.
    Definitely there is a solution and I need it urgently.

    Hi
    c:\> sqlplus "/ as sysdba"
    After logging into SQL, check the username using:
    SQL> Show user
    If the above command returns "sys", change the password of the user "sys" using:
    SQL> Alter user sys identified by "yourpassword";
    Thank You

  • Serious problem with database need help

    hello experts
    i am working with MS-ACCESS and connecting it with java programing
    now the problem with me are
    according to my need i have to create a table that contain Autonumber field
    but when i insert element in this table by query
    String query1 = "insert into Forum (Subject,Author,Date,Reply) values('"+param1+"','"+username+"','"+dateformat+"',"+reply+")";
    st1 = con1.createStatement(); it gives sql exception but when i remove
    autonumber field and make it simple field it works ok but i want to keep autonumber field and thn want to insert it
    is it possible to create a dynamic table in ms-access through java query like
    String query3 = "create table"+"topicId"+"( message varchar(1000) NOT NULL,author varchar(50) NOT NULL, date varchar(30) NOT NULL)";
    here topic id some variable that contain table name
    i think problem is that MS-ACCESS has no varchar data type plz help me
    The complete code i written is as follow
    <html>
    <%@ page language="java" import="java.sql.*,java.text.*"  %>
    <head>
    <title> Processing the post request </title>
    </head>
    <body background ="images/modbkgnd.jpg" bgproperties="fixed" >
    <%
       String param1="",param2="",topicId="";
       Connection con1=null;
       Statement  st1=null;
       ResultSet rs1=null;
       int a=2,reply=0;
       java.util.Date date = new java.util.Date();
       DateFormat df ;
       df = DateFormat.getDateInstance(DateFormat.FULL ,java.util.Locale.UK);
       String dateformat = df.format(date);
       String username = (String)session.getAttribute("forumlogin");
       param1=request.getParameter("Subject");
       param2 =request.getParameter("message");
    try
       Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
       con1 = DriverManager.getConnection("jdbc:odbc:lingua");
       String query1 = "insert into Forum (Subject,Author,Date,Reply) values('"+param1+"','"+username+"','"+dateformat+"',"+reply+")";
       st1 = con1.createStatement();
       out.print("hello i am here");
       boolean posubject = st1.execute(query1);
       out.print("hello i am here");
       String query2 = "select *from Forum";
       rs1 = st1.executeQuery(query2); //retriving table id for creating
        out.print("hello i am here");  //  message table
       while(rs1.next())
           topicId = rs1.getString(1);
       String query3 = "create table"+"topicId"+"( message varchar(1000) NOT NULL,author varchar(50) NOT NULL, date varchar(30) NOT NULL)";
       boolean createtable = st1.execute(query3);
       out.print("hello i am here");
       if(createtable)
          String query4 = "insert into"+"topicId"+"values('"+param2+"','"+username+"','"+dateformat+"')";
          boolean insertmess = st1.execute(query4);
    }catch(SQLException ex){
        out.print("sql exception");
    finally
       st1.close();
       con1.close();
    %>
    </body>
    </html>

    hello experts
    first i change my Date to date and thn try but it was not working.
    and thn i try as dinesh_tcs said
    i change my query as
    String query3 = "create table"+"topicId"+"( message string NOT NULL,author string NOT NULL, date string NOT NULL)";
    but nothing help me
    one more thing actually i don,t want to insert manually the field of autonumber what i want that my query work when i leave the autonumber field to insert values in the table ( or whatever way i want to insert values in that table by keeping autonuber given by MS_ACCESS)
    plz do the change in code i have maintained above or if not possible thn write the query that u have tested

  • Problem with sound input/output settings

    Hello--
    Last night, my iBook suddenly stopped playing any sounds at all: itunes, CDs, etc, won't play at all. I looked in system preferences/sound, and the computer told me that there are no input or output devices at all. What's more, the sound seems to me on permanent mute, and it won't allow me to change it at all (F4 and F5 functions just show a "mute" sign under the volume bar). Is this a problem with the software, hardware, or what? Thanks in advance for any advice,
    JB Coleman

    here is a set of weird but probable solutions. Good luck
    Solutions

  • Problem with APE8 flash output quality

    Hi Guys
    I have tried to get some advice some time ago about this problem, I'm having problems with quality of flash video made on APE8
    Basically video uploaded from mini dv camcorder (canon xm2) after editing and conversion to flash, video looks very bad, full of small horizontal lines and rugged edges not very clear.
    I have tried all available settings codecs in PE8 and no luck so far, computer W7 64-bit all drivers up to date, plenty of ram and hard drive space.
    I need good quality flash videos for my website and not sure what to do i like adobe programs and had use them for years and don't really want swap it for another.
    Slav

    Hi Steve
    Thanks for the answer, yes I'm using the correct project settings (PAL DV) and capture  video over FireWire using Premiere Elements.
    I have installed JW Player 5.3 on the website and on computer i have Sothink FLV Player.
    I have gone through the all resolution settings in PE8 with similar result, video looks not very good in 100%, every object especially ones with high contrast background has ragged edges and the picture is full of small horizontal lines.
    At the moment to get a reasonable good flash file I'm saving my finished video as MPEG (which is very good quality),  and than using Sothink Video Encoder for Adobe Flash I'm converting it to flash.
    I know the quality is lost by involving MPEG in the process but at the moment just don't know any other way how to get a reasonable result.
    Best regards
    Slav

  • Problem with function, need to return a very large number

    I have a function that is used to derive a number by using a defined algorithm. We have tested it many times in our 'development' region and it works. We moved it to our 'UAT' region and now the function is giving an error. The data is the same in both oracle instances. So.... dba's are telling me it is the function. At this point, I don't know what to do.
    Can I declare "RESULT" in a function so that it can return a number this big: 2.00023880306E24?
    Oracle returns -6502 error in the deriveNewNum function.
    Here is the error:
    *** ERROR in deriveNewNum.fnc
    SQLCODE: -6502
    ORA-06502: PL/SQL: numeric or value error: number precision too large
    BEGIN TF1ID; END;
    ERROR at line 1:
    ORA-06503: PL/SQL: Function returned without value
    ORA-06512: at DERIVENEWNUM", line 93
    ORA-06512: at line 1

    Hi,
    Did you look up that error in the error messages manual?
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28278/e4100.htm#sthref1889
    Is there something there that you didn't understand?
    <h3>ORA-06502: PL/SQL: numeric or value errorstring </h3>
    Cause: An arithmetic, numeric, string, conversion, or constraint error occurred. For example, this error occurs if an attempt is made to assign the value NULL to a variable declared NOT NULL, or if an attempt is made to assign an integer larger than 99 to a variable declared NUMBER(2).
    Action: Change the data, how it is manipulated, or how it is declared so that values do not violate constraints.
    If you declare variables like this:
    x     NUMBER;
    y     NUMBER (20, 10);there woul be no problem assigning a value like 2E24 to x, but there would be if you tried it with y.
    How are your varaibles declared.
    Whenever you have a problem with your code, post your code.
    Always say what version of Oracle you're using.

  • Problem with my query output

    Hi All,
    I couldn't get the o/p properly. These three values z_gc_cmpny_cntry ='USA' and b.z_gc_aip_xfr_flg = ' A04 -> A03' and sal_admin_plan = 'A01' are existed in my table. when i executed below statement, i was getting the o/p is 'Y'.. but, I want the o/p is ' N'.. i think there was problem with this value ' A04 -> A03'. how to overcome this problem.
    DECODE
    (a.z_gc_cmpny_cntry,
    'USA', (CASE
    WHEN ( ( (a.sal_admin_plan =
    'A01'
    OR (a.sal_admin_plan =
    'A03'
    AND (( (b.z_gc_aip_xfr_flg <>
    'A04 -> A01'
    OR ((b.z_gc_aip_xfr_flg) <>
    'A04 -> A03'
    THEN ('Y')
    ELSE ('N')
    END
    'N'
    please give reply ASAP.
    Thanks,
    Bell

    The chances are there is a problem in your parentheses. Having stripped out the unnecessary brackets (thank heavens for TextPad's CTRL+M function) I think the problem lies in this bit of the code:
        AND ( b.z_gc_aip_xfr_flg <> 'A04 -> A01'
              OR b.z_gc_aip_xfr_flg <> ' A04 -> A03')See, that's always going to be true. Perhaps you meant AND instead?
    Cheers, APC
    Blog : http://radiofreetooting.blogspot.com/

Maybe you are looking for