Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Can two write statements result in the same line display ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Can two write statements result in the same line display ?
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: 3158
Location: Tucson AZ

PostPosted: Mon Mar 12, 2007 11:02 am    Post subject:
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    Post subject: Re: Can two write statements result in the same line display
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: 686
Location: Earth

PostPosted: Mon Mar 12, 2007 12:04 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts scheduling between OPC and TWS give u... nsbl IBM Tools 4 Sun Mar 12, 2017 5:35 pm
No new posts Display FTP Session Count within TSO Yolanda Harvey TSO/ISPF 3 Fri Mar 10, 2017 10:31 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us