Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

To find the List of input and output files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
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    Post subject: To find the List of input and output files
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: 8593
Location: Back in jolly old England

PostPosted: Fri Jan 11, 2008 8:07 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Sat Jan 12, 2008 2:51 pm    Post subject:
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    Post subject: Reply to: To find the List of input and output files
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: 1439
Location: Bangalore,India

PostPosted: Mon Jan 14, 2008 8:47 am    Post subject:
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    Post subject:
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    Post subject: Reply to: To find the List of input and output files
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: 456
Location: Belgium

PostPosted: Mon Jan 14, 2008 12:53 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jan 16, 2008 7:29 pm    Post subject:
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    Post subject: Reply to: To find the List of input and output files
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    IBMMAINFRAMES.com Support Forums -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts JES2 doesn't honor the priority of th... Aron Lendvai JCL & VSAM 7 Thu Jun 29, 2017 1:41 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Need input in Scheduling Benchwarmer CA Products 5 Tue Jun 06, 2017 1:44 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us