Gil,
You might be able to solve your problem like this:
(Note: JCL not tested, may need tweaking)

//GENER   EXEC PGM=IEBUPDTE,PARM=NEW
//SYSPRINT DD  DUMMY
//SYSUT2   DD  DISP=(,PASS),...    alloc your temp PDS
//SYSIN    DD  *
./ADD NAME=PROGRAM
<your REXX Exec goes here>
/*
//REXX    EXEC PGM=IRXJCL,PARM=PROGRAM
//SYSEXEC  DD  DISP=(OLD,PASS),DSN=*.GENER.SYSUT2

For more information on using referbacks in JCL, please dust off the JCL
Reference Manual.


Regards,
Ulrich Krueger

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of Paul Gilmartin
Sent: Saturday, April 05, 2008 07:11
To: [email protected]
Subject: Re: Duplicate temporary dataset names

> <snipped>
>
Yeah.  Right.  And how may the programmer refer in one step to a
PDS, and in another to one of its members?  I regularly do:

//GENER   EXEC PGM=IEBGENER
//SYSUT2   DD  DISP=(,PASS),DSN=&&amp;SYSEXEC(PROGRAM),...
//SYSUT1   DD  *
  ...
//REXX    EXEC PGM=IRXJCL,PARM=PROGRAM
//SYSEXEC  DD  DISP=(OLD,PASS),DSN=&&amp;SYSEXEC

Can I do the equivalent with a system-assigned data set name?

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to