IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can two write statements result in the same line display ?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Avinash Kumar
Warnings : 1

New User


Joined: 20 Feb 2007
Posts: 9
Location: Noida

PostPosted: Mon Mar 12, 2007 10:09 am
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Mar 12, 2007 11:02 am
Reply with quote

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
View user's profile Send private message
Avinash Kumar
Warnings : 1

New User


Joined: 20 Feb 2007
Posts: 9
Location: Noida

PostPosted: Mon Mar 12, 2007 11:54 am
Reply with quote

Thanks friends.
I have achieved the desired result by first STRINGing the records and then WRITE to the file.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Mon Mar 12, 2007 12:04 pm
Reply with quote

You said in your original post, you wanted result with TWO write statements. I think you've used only one WRITE right?? icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts rewrite same SAY line CLIST & REXX 8
No new posts first column truncated in search result IBM Tools 13
Search our Forums:

Back to Top