View previous topic :: View next topic
|
Author |
Message |
Avinash Kumar Warnings : 1 New User
Joined: 20 Feb 2007 Posts: 9 Location: Noida
|
|
|
|
Hi Friends.
I need a sample of cobol code that can result in the same line display after specifying two consecutive write statements.
eg.
WRITE rec-1 and
WRITE rec-2 should be displayed like
"rec-1rec-2" in the resultant file.
Thanks. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Write to what?
Several combinations of before, after and without positioning or advancing can provide your desired output to a printer.
What are you trying to do? |
|
Back to top |
|
|
Avinash Kumar Warnings : 1 New User
Joined: 20 Feb 2007 Posts: 9 Location: Noida
|
|
|
|
Thanks friends.
I have achieved the desired result by first STRINGing the records and then WRITE to the file. |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
You said in your original post, you wanted result with TWO write statements. I think you've used only one WRITE right?? |
|
Back to top |
|
|
|