IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

To find the List of input and output files


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Jenson Luke

New User


Joined: 11 Jan 2008
Posts: 14
Location: Chennai

PostPosted: Fri Jan 11, 2008 6:46 pm
Reply with quote

How to list the input and output files from the JCL PROC using REXX tool
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Jan 11, 2008 8:07 pm
Reply with quote

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
View user's profile Send private message
Jenson Luke

New User


Joined: 11 Jan 2008
Posts: 14
Location: Chennai

PostPosted: Fri Jan 11, 2008 8:33 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Jan 12, 2008 2:51 pm
Reply with quote

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
View user's profile Send private message
Jenson Luke

New User


Joined: 11 Jan 2008
Posts: 14
Location: Chennai

PostPosted: Mon Jan 14, 2008 8:28 am
Reply with quote

DISP=SHR and DISP=OLD (Then test file is an input)
Output : DISP=NEW (Then test file is an output)
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Jan 14, 2008 8:47 am
Reply with quote

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
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Jan 14, 2008 9:01 am
Reply with quote

Even just getting a list of datasets from the proc's could be difficult with symbolic substitution.
Back to top
View user's profile Send private message
Jenson Luke

New User


Joined: 11 Jan 2008
Posts: 14
Location: Chennai

PostPosted: Mon Jan 14, 2008 12:50 pm
Reply with quote

So Can I get a list of datasets that uses only DISP = SHR
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Mon Jan 14, 2008 12:53 pm
Reply with quote

Yes Just do it.
Back to top
View user's profile Send private message
Jenson Luke

New User


Joined: 11 Jan 2008
Posts: 14
Location: Chennai

PostPosted: Wed Jan 16, 2008 7:13 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jan 16, 2008 7:29 pm
Reply with quote

The manuals are available at

TSO / REXX http://publib.boulder.ibm.com/cgi-bin/bookmgr/FINDBOOK?filter=tso&Collection=0
ISPF http://publib.boulder.ibm.com/cgi-bin/bookmgr/FINDBOOK?filter=ispf

But the logic is something that you will need to determine for yourself.
Back to top
View user's profile Send private message
Jenson Luke

New User


Joined: 11 Jan 2008
Posts: 14
Location: Chennai

PostPosted: Wed Jan 16, 2008 8:27 pm
Reply with quote

Thanks
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts Jes2 command output All Other Mainframe Topics 0
No new posts Merge files with a key and insert a b... DFSORT/ICETOOL 6
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
No new posts COBOL program logic for comparisipn o... COBOL Programming 2
No new posts list pds members name starting with xyz CLIST & REXX 11
Search our Forums:

Back to Top