How to document input and output dataset names using JCL?



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

How to document input and output dataset names using JCL?

Postby skankatala » Wed Dec 21, 2011 10:05 am

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.
skankatala
 
Posts: 42
Joined: Sun Dec 11, 2011 9:45 am
Location: Hyderabad
Has thanked: 0 time
Been thanked: 0 time

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

Postby NicC » Wed Dec 21, 2011 11:12 am

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

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

Postby steve-myers » Wed Dec 21, 2011 11:44 am

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.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

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

Postby mongan » Wed Dec 21, 2011 1:30 pm

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.
User avatar
mongan
 
Posts: 211
Joined: Tue Jan 11, 2011 8:32 pm
Has thanked: 1 time
Been thanked: 5 times

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

Postby enrico-sorichetti » Wed Dec 21, 2011 1:51 pm

In a day, mostly I run a JCL to copy one PS to another PS file.

pretty boring job, I would say :geek:
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

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

Postby mikereis » Wed Dec 21, 2011 10:37 pm

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.
mikereis
 
Posts: 14
Joined: Thu Jan 13, 2011 6:23 am
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post