View previous topic :: View next topic
|
Author |
Message |
dvpkumar217
New User
Joined: 01 Sep 2007 Posts: 11 Location: Baltimore, MD US
|
|
|
|
My requirement is to open a file which is coded in the format:
(Userid).TEST.TEMP(-n). Where n can vary from 0 to any number.
Can we accomplish this task thru REXX or TSO cmd? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
I believe you need to first convert your "relative" generation to the absolute dataset name (Userid.TEST.TEMP.GnnnnVnn) and open that. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Yep.
REXX reads only from DD names. If you run the REXX in batch, you can define the DD and GDG in your JCL, and then read from it or write to it with EXECIO.
A referral to a GDG by relative generation number is strictly a JCL construct. |
|
Back to top |
|
|
mguolo
New User
Joined: 23 Jun 2006 Posts: 1
|
|
|
|
You can do it inside the rexx program thru the LISTCAT tso command and put the result in a stem, after this you can get the name of your dataset name and then allocate it thru the ALLOCATE command.
|
|
Back to top |
|
|
|