How can i print a result in one line

hi guys
i have a small procedure as below
create or replace procedure test_sp is
l_str varchar2(2000) := replace('14522|||Lessig|||Minna|||Lessig, Minna','|||','|');
i pls_integer;
l_start_pos INTEGER := 1;
l_end_pos INTEGER :=1;
field_v varchar2(255);
begin
WHILE l_end_pos <> 0 LOOP
IF l_end_pos <> 0 THEN
l_end_pos := instr(l_str,'|',l_start_pos);
if l_end_pos = 0 then
dbms_output.put_line(l_str);
end if;
field_v := substr(l_str,1,instr(l_str,'|')-1);
l_str := substr(l_str,instr(l_str,'|')+1);
dbms_output.put_line(field_v);
END IF;
END LOOP;
when i execute the above procedure the result showed me like
14522
Lessig
Minna
Lessig, Minna
i would like to assign each value in different variable.
how can i do that?
Thanks

hi guys could you please take a look in my proc below
create or replace procedure test_sp is
l_str varchar2(2000) := replace('14522|||Lessig|||Minna|||Lessig, Minna','|||','|');
cnt pls_integer := 0;
l_start_pos INTEGER := 1;
l_end_pos INTEGER :=1;
field_v varchar2(255);
TYPE XYZ is TABLE OF VARCHAR2(2000) index by binary_integer;
var XYZ;
begin
     for i in 1..4 loop
          var(i) := ' ';
     end loop;
     for i in var.FIRST..var.LAST loop
          IF l_end_pos <> 0 THEN
          l_end_pos := instr(l_str,'|',l_start_pos);
               if l_end_pos = 0 then
                    var(i) := substr(l_str,1,instr(l_str,'|')-1);
               dbms_output.put_line(var(i));
               end if;
          l_str := substr(l_str,instr(l_str,'|')+1);
               var(i) := substr(l_str,1,instr(l_str,'|')-1);
               dbms_output.put_line(var(i));
     END IF;
     END LOOP;
end;
this procedure displaying the following result..
SQL> exec test_sp
Lessig
Minna
PL/SQL procedure successfully completed.
while it should print the following desire result.
14522
Lessig
Minna
Lessig, Minna
is any body tell why the above procedure not showing me a desired result?
Thanks

Similar Messages

  • How can i print out more that one invoice ?

    Hello All,
    How can i print out more that one invoice?
    Regards,
    Luke

    Hi,
    When you are in billing document & click on "issue output to", you get a window having tab"print options"
    click on this by selecting your output type. In the feild "Number of messages" you enter how many times you want the print to be printed.
    This will help you.
    Additionally you can also write logic in your print program if you want the print to be fired some fixed number of times. (eg 4 times), this can be done by your ABAPer.
    Hopw this helps you
    Regards,
    Dhananjay

  • How can I print multiple images on one sheet:  PSE 10/Mac?

    When printing, I can have all of my images in the dialoug box - but cannot figure out how to get more than one image on a sheet!  For example, I am printing several photos a 2x2, and want to put as many as possilble on 1 sheet instead of using a seperate sheet for each image.  I am on a Mac.
    Any ideas??  I can't seem to find the answer.  Thanks!

    Barbara B.
    Thanks for the reply to wdwpartners question. 
    I am new to PSE 10 (on Windows 7) and having the same problem with printing multiple photos on one sheet.  With 14-20  images both contact sheet and picture package force you into 2x2 prints, not the image's original HxW ratio thus loosing some of the image on paper.  Am I missing something?
    My old version of PSE gave me an option to "print multiple photos" and custom select the image dimentions which was very useful to me.  Please let the powers that be know this user asked for that option back!!
    Thanks for a reply.

  • How can I print 2 5X7s on one sheet of 8.5X11?

    I want to print one image as 2 5X7s on one sheet of 8.5X11 paper. In previous versions I could do this easily. Not so anymore. Here is my scenario. I use Windows 8 64 bit version 6.2 with Photoshop Elements 11.0. I use an Epson Stylus Photo 1400 and its print software.
    I choose : File Print enter,  Orientation Portrait enter,  More Options-Border Thickness .118" enter,  Change Settings-Advanced Settings-Premium Photo Paper Glossy_OK enter,  Select Print Size 5X7 enter,  Position-Uncheck Center-Top=0 enter.  The image on the screen has shifted to the top with a .118 border and has crop marks on the other three sides. I print my picture, turn the sheet around and repeat the process. I have 2 5X7s of the same image on the sheet of paper.  However, this version does not like to do this. It works sometimes, and sometimes not. I am wasting too much paper and ink trying to figure it out. The image on the screen always looks correct, showing a 5X7. The image that prints may be a 5.75"X5" or may be a 6"X5". The border at the top chages from .118" to .80"
    I tried using Picture Package as suggested before. It will not set up to print only one picture, and does not allow me to set my borders. The image came out as a borderless 5X7.
    Any suggestions will be greatly appreciated.

    Barry5370 wrote:
    I tried it. It worked pretty good.
    It should work perfectly if you have cropped the picture precisely. How are you cropping,  step-by-step?
    Barry5370 wrote:
    Now I need to figure out how to get the correct borders on the images. .
    Once you have done Select>all, go to Edit>stroke>(outline) selection.
    Enter the width for the stroke/outline in px (try 4px or 5px, experiment), select a color, and place it inside (to maintain 5x7 dimension).
    Barry5370 wrote:
    Thanks.
    You're welcome. Let us know how you make out.

  • How Can I Print without the shadowed grid lines showing up?

    Does anyone know how to print out a page where your bordered cells show up and the background shadowed grid or cells don't print?

    You can take control of your grids and outlines by using the Tables Inspector > Cell Borders.
    What you described sounds like grid lines set to "Thin" and the color set to a shade of gray. You may also choose None or a number of other patterns, colors and thicknesses. Do some experimenting. The range of cells you have selected will be affected by your choices.
    Regards,
    Jerry

  • How can I print source code with connecting lines on control structures?

    Anyone know of any programs that will format source code printouts and print connecting lines from the start to the end of control structures (such as: if--"end if", while-"end while" etc.)?

    Indentations and comments do help read source code. However, when you have a large program with many levels of nesting of control structures the readability of the code (even with indentations) becomes very difficult.

  • How can I print to hp photosmart all in one 7280 from ipad

    How can I print to hp photosmart all in one 7280 from ipad
    This question was solved.
    View Solution.

    Hi,
    Although the C7280 is not AirPrint enabled, you may still print through the local network using the HP ePrint mobile app.
    you may find the steps to get and use the app in the following document:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02775166&cc=us&dlc=en&lc=en&product=3204785&tmp...
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • How can i print just one page of photo book without printing the entire book

    how can i print just one page of photo book without printing the entire book

    Jim,
    Take heart.  We can help.
    First turn on page view so you can see how the content of your sheet fits on the page(s).  A Numbers document contains sheets (listed on the left) which in turn contain tables, charts, text, and graphics.  Select the sheet you want to print on the left, then enable page view by selecting the menu item:
    "View > Show Print View":
    Now you should see your content and how it fits on one, or more, pages.  If thie content is too big for one page use the controls and the bottom left of the window to expose the sheet controls:
    Here a table is too big to fit on one page:
    slide the "Content Scale" slider so the content fits:

  • How can i print specific pages against searched word or name (in one print command) from 1000 pages

    how can i print specific pages against searched word or name (in one print command) from 1000 pages

    Thanks, Alex!
    ok, I try first approach in print4.vi, but Labview return an error (view jpg); if I cut From, To controls, the VI print all pages. The same things happen also if I trasform I32 in Variant.
    I don't try second approach, because at this time I have only one report
    I try also with VB macro: this is better (print3.vi) but.....if I use:
    Sub Print_Pages_From_To()
    ActiveDocument.ActiveWindow.PrintOut Range:=wdPrintFromTo, From:="2", To:="3"
    End Sub
    is ok; print the pages selected; if I use:
    Sub PrintPages()
    ActiveDocument.ActiveWindow.PrintOut  Pages:="2-3"  
    End Sub
    printer print all pages.
    what do you think?
    regards,
    Italo
    Attachments:
    print Problem.jpg ‏39 KB
    print4.vi ‏19 KB
    print3.vi ‏19 KB

  • How can I print mulitple different .ai files onto one page in Illustrator CS6?

    How can I print mulitple different .ai files onto one page in Illustrator CS6? I have all of the files organized by Arrange Documents>Tile All in Grid and I would like to print the files in this format so that they can all be seen at once when printed out onto one page.
    Some background is that I have 16 different cad drawings that I have converted and edited in illustrator. I'd like to basically make a contact sheet with all 16 drawings so that they can be reviewed on one sheet of paper after printing. But each drawing is in it's own unique file, and I have not figured out how to put them all onto one page for printing.

    You can place them (linked) into a new Illustrator file and print from there.
    The original files will need pdf compatability.

  • How can I print multiple copies of same photo onto one page on iPhoto 9.5.1?

    How can I print multiple copies of same photo onto one page on iPhoto 9.5.1? I was able to do it on the old iPhoto, but can't seem to be able to do it on the new iPhoto. Grrr...

    Photos does the same thing.... Only workaround I can come up with is to create a template in Pages and copy &amp; paste.

  • How can I print multiple copies of the same photo onto one sheet of paper?  Do I have to Duplicate the photo in iPhoto and then select them all?

    How can I print multiple copies of the same photo onto one sheet of paper?  Do I have to Duplicate the photo in iPhoto and then select them all?

    no - you simply have to select the option to print mucliples of a photo on a page
    select the photo and go to the file menu ==> print - select the printer, paper size and print size and click customize - in the tool bar click on the settings icon (the gear looking thingy) and select "multiple of the same photo per page" and the preview will reflect this option showing a full page of the selected size photos
    LN

  • I have a iphone 5c and a wireless computer hooked to a usb wireless printer Hp4215 officejet all-in-one how can I print from my phone to the printer

    How can I print to my wireless Hp officejet 4215 all-in-one printer that is usb in line with my computer that uses windows 7 from my Iphone 5c

    there are 2 ½ ways to print
    1. the printer support AirPrint and it works out of the box
    2. one get a printing app from app store which support the printer
    2-½ one get the free software from netgear called netgear genie which will make the computer display all printes it's know act as AirPrint printers
    no other things in the known universe will make printing possible

  • How can I print from my ipad2 to my hp6210 all in one using printopia...I can see the list on my ipad2, I select the printer and say print but nothing happens.

    How can I print from my ipad2 to my hp 6210 all in one using printopia? I see my printer on my iPad, I select it and say print and nothing happens. The printer is connected to an older Mac with OS X 10.4.11 but I do have an imac in another room. I have trouble printing from the iMac to this printer also even tho share is on but the printer works fine with the old Mac it's connected to. My iPad has the latest iOS.

    A few things to consider.
    The computer Printopia is loaded on must be powered on and must be able to print on the printer that is being shared.  If the iMac is having problems printing to the printer it could indicate a problem with the share setup.

  • How can I print more than one page of an internet site?

    When I try to print pages from internet sites (Facebook, Merchant Circle, Linked In, NBC.com, etc.), Firefox will only print the first page.
    In order to print more information, it is necessary to reduce the scale of the print so more of the information will print on the first page.
    How can I print out more than just one page of a website without having to make the print so small that I cannot read it when it prints?

    Firefox has problems with some style rules.
    First, it's always helpful to use any print-formatted or print-optimized version of the page. Sometimes there is a link for this.
    Second, in some cases you need to use this trick: press Ctrl+a to select all content on the page, then Ctrl+p to display the print dialog, and click the radio button next to Selection.
    Those tricks don't always work, but hopefully they will help.

Maybe you are looking for

  • Macbook air mainboard failed

    I have a macbook air from 16 months ago suddenly it´s stopped working. I took the Macbook to Apple technical support in Chile (MacOnline) and the support people reviewed the equipment and the diagnosis was that the motherboard is faulted, the cost of

  • Page Space usage in Windows XP64 with 10g PE 32-bit

    Hi. We have three workstations installed with 12GB of RAM and XP64. Due to issues porting the database from the user's XP32 bit machines into oracle 64-bit, I instead installed Oracle 10g 32-bit, and just copied over the %ORACLE_HOME\oradata\orcl dir

  • HT5624 account disabled for security settings and timed out

    How do I disable my account as unable to enter my password as timed out message appears every time and also a message my account has been disabled for security reasons

  • Play Next Song Syndrom

    My iPod keeps changing to the next song for no apparent reason, when ever if feels like it. I purchased this iPod, so technically it should not be owning me... I'm guessing this is because of a new firmware update?? But what do i know, i searched aro

  • Help with external hard drive and firewire?

    2 questions:  1) Does anyone know if there is a hub made for the firewire 800 to allow more than 1 device to be hooked up at 1 time? ex... capture deck and external hard drive.  2) I was cleaning up my external hard drive.  I ejected it and now it wo