Page 1 of 1

How to document input and output dataset names using JCL?

PostPosted: Wed Dec 21, 2011 10:05 am
by skankatala
In a day, mostly I run a JCL to copy one PS to another PS file.

I need to maintain the list of input and output dataset names in an Excel file.

Is there any JCL to maintain the list of Input and Output dataset names in a PS file?

I do copy jcl around 200 times a day. Documentation takes very long time. Plase help me out.

Thanks in Advance.

Re: How to document input and output dataset names using JCL

PostPosted: Wed Dec 21, 2011 11:12 am
by NicC
JCL cannot do what you want - it only tells the mainframe which programs you want to run and what resources those programs require.

What you could probably do is write a Rexx program to scan your run JCL and extract the dataset names from there and write the information to a file with a comma between the 2 names and each pair of files on a new line. Then, once a day, this file can be FTPed to your PC and brought into your spreadsheet as a CSV file. After the FTP the file would have to be emptied or deleted.

Re: How to document input and output dataset names using JCL

PostPosted: Wed Dec 21, 2011 11:44 am
by steve-myers
NicC's idea is good, but...there is nothing in JCL (except for an infrequently used parameter in the LABEL keyword) to indicate whether a DD statement is for input or output. DD name SYSUT1 is often, but not always, input; DD name SYSUT2 is often, but not always, output; DD name SYSPRINT is almost always output; DD name SYSIN is almost always input.

Re: How to document input and output dataset names using JCL

PostPosted: Wed Dec 21, 2011 1:30 pm
by mongan
To be efficient I think you should write a rexx that generates your jcl and the documentation. That way you can make both easier for you.

Re: How to document input and output dataset names using JCL

PostPosted: Wed Dec 21, 2011 1:51 pm
by enrico-sorichetti
In a day, mostly I run a JCL to copy one PS to another PS file.

pretty boring job, I would say :geek:

Re: How to document input and output dataset names using JCL

PostPosted: Wed Dec 21, 2011 10:37 pm
by mikereis
DOCU/TEXT is a product that will do this for you. You might check with your support people and see if it is installed on your system.