Reputation: 11
I tried 'HRECALL GTEMP.BATCH.FILE(0)' to recall the latest GDG generation and it returned and invalid dsn name error message.
However, using a similiar command, 'HRECALL GTEMP.BATCH.FLATFILE', recalls flat file as expected.
What did I do incorrectly?
Upvotes: 1
Views: 4897
Reputation: 11911
I assume you are executing the command using some flavour of the TSO-Terminal-Monitor-Program, e.g. IKJEFT01
.
Your problem is that TSO doesn't support addressing GDG
s using relative generations, so it will interpret your (0)
as a PDS-member-name instead of a generation.
So what are your options?
GTEM.BATCH.FILE.G1234V00
) and recall it.You can use JES-mechanisms to recall the file(s) in a separate job-step:
//RECALL EXEC PGM=IEFBR14
//DATASET1 DD DSN=GTEMP.BATCH.FILE(0),DISP=SHR
//DATASET2 DD DSN=GTEMP.BATCH.FILE2(0),DISP=SHR
Option 2. is easy to implement but depending on your needs it might have two downsides:
HRECALL
might recall several datasets in parallelUpvotes: 1