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
 

 

How to write cobol output in SPOOL and also in output file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
mkssampathkumar
Warnings : 1

New User


Joined: 31 Aug 2006
Posts: 57
Location: chennai

PostPosted: Tue Feb 17, 2009 12:37 pm    Post subject: How to write cobol output in SPOOL and also in output file
Reply with quote

Hi
Anybody knows how to write the output of cobol program in both SPOOL and output GDG file.

Thanks & Regards
Sampath
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Feb 17, 2009 12:43 pm    Post subject:
Reply with quote

Yes, I am sure that plenty of people do, but what is your real question here ?
Back to top
View user's profile Send private message
mkssampathkumar
Warnings : 1

New User


Joined: 31 Aug 2006
Posts: 57
Location: chennai

PostPosted: Tue Feb 17, 2009 4:29 pm    Post subject: Reply to: How to write cobol output in SPOOL and also in out
Reply with quote

Please provide me the sample JCL to write the output of cobol pgm in SPOOL and output file
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Chennai

PostPosted: Tue Feb 17, 2009 4:47 pm    Post subject:
Reply with quote

In JCL, there will be a SYSOUT in your JCL

Code:
//SYSOUT   DD SYSOUT=<dsn name>


Point Sysout to a dataset and then in the next step you can copy the dataset to GDG if required.
Back to top
View user's profile Send private message
rajulan

New User


Joined: 11 Jan 2008
Posts: 66
Location: India

PostPosted: Tue Feb 17, 2009 4:50 pm    Post subject:
Reply with quote

To muthuvel,

I understand the sampath kumar's need correctly, he is asking the output to be routed to Sysout as well as output file at the same time.

The code you have given will route the output to file not to Sysout.

Thanks,
Rajulan.
Back to top
View user's profile Send private message
rajulan

New User


Joined: 11 Jan 2008
Posts: 66
Location: India

PostPosted: Tue Feb 17, 2009 4:51 pm    Post subject:
Reply with quote

I mean in the same step.

Thanks,
Rajulan
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Feb 17, 2009 5:01 pm    Post subject:
Reply with quote

Exactly what output are you talking about.

The JES outputs from the programs,
The data output from the programs.

How on earth are we supposed to know what you really want to do if you do not explain it in a clear and concise manner. The hardest part of offering a resolution is to fully understand the requirement which on a forum like this can only be achieved by the poster being clear and concise.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Feb 17, 2009 11:40 pm    Post subject:
Reply with quote

Hello,

Quote:
Anybody knows how to write the output of cobol program in both SPOOL and output GDG file.
Write the output to the gdg and in a following step copy the gdg to the spool. You could use IEBGENER to copy the file from the gdg to the spool.
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Wed Feb 18, 2009 12:15 am    Post subject:
Reply with quote

I worked at a site several years ago that had a third party subsys that was great for this but I have not seen it anywhere else.

Another possibility is to make the COBOL program write the output to 2 output files, one having a DSN in the JCL and one having SYSOUT=... in the JCL.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm


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