View previous topic :: View next topic
|
Author |
Message |
Vasukip Currently Banned New User
Joined: 17 Jun 2008 Posts: 48 Location: Chennai
|
|
|
|
Hello all,
I need to find out the output file dynamically. If we search one file in 3.4 , then we provide with P.XXXX.* - it will display the cominations.
please check my sample code
Code: |
//TSOXXXX4 JOB (12345),'JCL',CLASS=E,
// MSGCLASS=X,NOTIFY=&SYSUID,
// MSGLEVEL=(1,1)
//*
//*
//R010 EXEC PGM=SORT,COND=(0,NE)
//SORTIN DD DSN=TSOXXXX.ADV124DP.HISTORY.V*,
// DISP=SHR
//SORTOUT DD DSN=TSOXXXX.DEV1.JCLGEN.JOBLIB(ADV124DP),
// DISP=SHR
//SYSIN DD DSN=TSOXXXX.PAS.CNTL.DEC07(ADV124DP),
// DISP=SHR
//SYSOUT DD SYSOUT=*
//*
|
The actual file is TSOXXXX.ADV124DP.HISTORY.V6767. I'm giving that with TSOXXXX.ADV124DP.HISTORY.V*, "*" symbol. It is showing JCL error is there any other way to search a file dynamically and use the same as Input.
Kindly post ur reply |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
vasu,
Quote: |
I'm giving that with TSOXXXX.ADV124DP.HISTORY.V*, "*" symbol. It is showing JCL error |
Yes, it will as this is not a valid syntax.
Quote: |
there any other way to search a file dynamically and use the same as Input. |
I would go for REXX, using LISTDSI and then creating the JCL with the input files. |
|
Back to top |
|
|
Vasukip Currently Banned New User
Joined: 17 Jun 2008 Posts: 48 Location: Chennai
|
|
|
|
Aaru wrote: |
I would go for REXX, using LISTDSI and then creating the JCL with the input files. |
okay Thank you. Do u ve any sample for this ? Else let me try this in REXX. Thanks again |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
vasu,
Quote: |
okay Thank you. Do u ve any sample for this ? |
Search the REXX forum. I Shall post if i find anything. |
|
Back to top |
|
|
Vasukip Currently Banned New User
Joined: 17 Jun 2008 Posts: 48 Location: Chennai
|
|
|
|
This is a online REXX job to find datasets
Code: |
/*REXX*/
FILE_NAME="T.PAS.ACCSERST.PHASE3.D*"
"LISTCAT ENTRIES('"FILE_NAME"')"
Output
---------
T.PAS.ACCSERST.PHASE3.D060108
T.PAS.ACCSERST.PHASE3.D070508
|
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Take a look at SYS1.SAMPLIB (IGGCSIRX) for a great way to do this.
You can use wild cards almost as easily as you can with 3.4 |
|
Back to top |
|
|
Vasukip Currently Banned New User
Joined: 17 Jun 2008 Posts: 48 Location: Chennai
|
|
|
|
This LISTCAT command not fetching up the PS file Entries. I tried its showing Error |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
Back to top |
|
|
Vasukip Currently Banned New User
Joined: 17 Jun 2008 Posts: 48 Location: Chennai
|
|
|
|
Hello Aaru,
I tried ur link. The logic s really useful for my further process.
tried some xmple nd its working fine . Thnx million . |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Vasu,
Quote: |
tried some xmple nd its working fine . |
That's great.
You are welc me. |
|
Back to top |
|
|
|