View previous topic :: View next topic
|
Author |
Message |
mkssampathkumar Warnings : 1 New User
Joined: 31 Aug 2006 Posts: 57 Location: chennai
|
|
|
|
Hi
Anybody knows how to write the output of cobol program in both SPOOL and output GDG file.
Thanks & Regards
Sampath |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Yes, I am sure that plenty of people do, but what is your real question here ? |
|
Back to top |
|
|
mkssampathkumar Warnings : 1 New User
Joined: 31 Aug 2006 Posts: 57 Location: chennai
|
|
|
|
Please provide me the sample JCL to write the output of cobol pgm in SPOOL and output file |
|
Back to top |
|
|
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
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 |
|
|
rajulan
New User
Joined: 11 Jan 2008 Posts: 66 Location: India
|
|
|
|
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 |
|
|
rajulan
New User
Joined: 11 Jan 2008 Posts: 66 Location: India
|
|
|
|
I mean in the same step.
Thanks,
Rajulan |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Douglas Wilder
Active User
Joined: 28 Nov 2006 Posts: 305 Location: Deerfield IL
|
|
|
|
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 |
|
|
|