View previous topic :: View next topic
|
Author |
Message |
psubbarao
New User
Joined: 14 Jun 2008 Posts: 1 Location: Hyderabad
|
|
|
|
Hi,
I need the following as cobol output:
1
12
123
1234
12345
Display will display the output and go to next line. How to display in the same line? and go to next line based on the condition.
Thanks,
Subbarao.P |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Build the complete line before issuing the display. When the line is complete, display it and then start over for the next line.
If this is not what you mean, please clarify. Maybe show the input and the desired output from that input. |
|
Back to top |
|
|
the_gautam
Active User
Joined: 05 Jun 2005 Posts: 165 Location: Bangalore
|
|
|
|
as dick said,
you need to prepare one line for the DISPLAY.
you may opt for an array of 5 elements or a string of 5 bytes and then using Reference Modification to build the line. |
|
Back to top |
|
|
|