|
|
| Author |
Message |
Ajay Baghel
Active User
Joined: 25 Apr 2007 Posts: 108 Location: Bangalore
|
|
|
|
why not use:
| Code: |
//STEP1 EXEC PGM=IKJEFT01,
// PARM='%rexxpgm-name YOURPDSNAME'
//SYSEXEC DD DSN=REXX-PDS-NAME,DISP=SHR
//SYSTSPRT DD SYSOUT=*
//MYINDD DD DSN=Input file if any
//SYSTSIN DD DUMMY |
In the rexx pgm, you can receive the pds name as an argument and later on continue with your logic (LISTDS with MEMBERS parameter).
eg: http://ibmmainframes.com/post-51855.html
Thanks,
Ajay |
|
| Back to top |
|
 |
References
|
Posted: Sun Mar 23, 2008 4:10 pm Post subject: Re: Reply to: JCL To Execute A REXX Program |
 |
|
|
 |
nirenchan
New User
Joined: 21 Jul 2005 Posts: 10 Location: USA
|
|
|
|
HI,
I want to invoke one TSO Command using REXX.
we use one command called DSNSRCH for searching strings in particualar dsn. I want to use the same in JCL
like through JCL I 've to pass the search string so that it will pass the strings to Rexx program and the Rexx program can invoke the DSNSRCH and this will give the output to my Output Dataset.
can any one help me ?
Regards,
Niren. |
|
| Back to top |
|
 |
Pedro
Active User
Joined: 01 Sep 2006 Posts: 148 Location: work
|
|
|
|
quoting Ajay:
| Quote: |
why not use:
| Code: |
//STEP1 EXEC PGM=IKJEFT01,
// PARM='%rexxpgm-name YOURPDSNAME'
//SYSEXEC DD DSN=REXX-PDS-NAME,DISP=SHR
//SYSTSPRT DD SYSOUT=*
//MYINDD DD DSN=Input file if any
//SYSTSIN DD DUMMY |
In the rexx pgm, you can receive the pds name as an argument and later on continue with your logic (LISTDS with MEMBERS parameter).
|
The code is slightly modified to show that you can pass multiple parameters
| Code: |
//STEP1 EXEC PGM=IKJEFT01,
// PARM='%rexxpgm-name parameter1 parm2' |
be sure to follow the rest of Ajay's example.
The example shows %rexxpgm-name, but I believe it can be any TSO command. You could probably call your DSNSRCH command directly. Use the same parameters that you would use if called from TSO. |
|
| Back to top |
|
 |
|
|