View previous topic :: View next topic
|
Author |
Message |
Jenson Luke
New User
Joined: 11 Jan 2008 Posts: 14 Location: Chennai
|
|
|
|
How to list the input and output files from the JCL PROC using REXX tool |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
If you mean that you want to read a PROC from a PDS and list what files are used then it is usually a self written REXX.
Every shop has different standards, i.e. DISP=OLD means output, DISP=SHR means input. But of course the program might change and the JCL remains the same, so the validity of this is questionable. |
|
Back to top |
|
|
Jenson Luke
New User
Joined: 11 Jan 2008 Posts: 14 Location: Chennai
|
|
|
|
I mean I have to read a Proc from a PDS and want to get the list of input and the output files that are used in the particular Job using REXX |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
How do you know if a file in input or output without analysing the program code.
//TESTFILE DD DSN=dataset name,DISP=SHR
Is TESTFILE input or output ? |
|
Back to top |
|
|
Jenson Luke
New User
Joined: 11 Jan 2008 Posts: 14 Location: Chennai
|
|
|
|
DISP=SHR and DISP=OLD (Then test file is an input)
Output : DISP=NEW (Then test file is an output) |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Jenson,
Quote: |
DISP=SHR and DISP=OLD (Then test file is an input) |
No guarntee that above disp are used only for i/p. Even o/p can have such disp.
Quote: |
Output : DISP=NEW (Then test file is an output) |
how about 'disp=mod', which can be used for i-o operations? |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Even just getting a list of datasets from the proc's could be difficult with symbolic substitution. |
|
Back to top |
|
|
Jenson Luke
New User
Joined: 11 Jan 2008 Posts: 14 Location: Chennai
|
|
|
|
So Can I get a list of datasets that uses only DISP = SHR |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
Yes Just do it. |
|
Back to top |
|
|
Jenson Luke
New User
Joined: 11 Jan 2008 Posts: 14 Location: Chennai
|
|
|
|
I am new to REXX.
So can you help me to get the list of files that are used in the proc |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
Back to top |
|
|
Jenson Luke
New User
Joined: 11 Jan 2008 Posts: 14 Location: Chennai
|
|
|
|
Thanks |
|
Back to top |
|
|
|