Micheal Butz wrote:
>I am allocating a dataset in a Rex exec using the following syntax
Rex, uhhmmm, sorry, Michael, it is REXX, not "Rex". :-)
>"Alloc fi(myddnam) da('"my.pds.name(member)"') shr"
Is thus litteraly so (copy/paste intact) or did you redacted the actual dataset
and member name?
I have two live examples of Allocation statements in my REXX programs:
"ALLOC DA('TSOID.TMON.REPORT(INPUT)') F(INVOER) SHR REUSE"
(HLQ slightly renamed for posting)
Note: Double Quote (One Character) before ALLOC and again after REUSE
Note: Single Quote before dataset and again after member
or
ALLOK:
STRING = '"ALLOC DA('''DSN''') F(INVOER) SHR REUSE"'
INTERPRET STRING
RETURN
Where DSN has been pre-populated with a full dataset name (and optionally a
member name too, it depends)
Note: Single Quote (x'7D') and then Double Quote (One Character, x'7F') before
ALLOC
Note: Three Single Quotes before DSN and also Three Single Quotes after DSN.
Last: Double Quote (One Character) and Single Quote after REUSE.
>I get an error routine not found
Please post it! We're not going anywhere without it!
Groete / Greetings
Elardus Engelbrecht
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN