Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8617
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: 8617
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: 8617
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 Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts JOINKEYS Paired and Unpaired Sort on ... MFwhiz DFSORT/ICETOOL 7 Tue Nov 07, 2017 2:46 am
No new posts Copy selected columns from 2 input fi... Poha Eater DFSORT/ICETOOL 3 Thu Nov 02, 2017 3:43 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us