I'm copying a member from one library to another 'temp' library before I modify it, but I can only do this if the second location is already created...This is the rexx code I'm workin with:
ADDRESS ISPEXEC
"LMINIT DATAID("DDI") DATASET('"FROMPDS"') ENQ(SHRW)"
"LMINIT DATAID("DDO") DATASET('"TOPDS"') ENQ(SHRW)"
"LMCOPY FROMID("DDI") FROMMEM("M1") TODATAID("DDO") REPLACE"
How would I go about verifying whether 'xxxx.REXXTEMP' exists, and creating if it doesn't?
Here's the dataset information if it helps with a creation statement:
Data Set Name . . . . : xxxx.REXXTEMP
General Data Current Allocation
Management class . . : MCPDS Allocated cylinders : 10
Storage class . . . : SCDFAULT Allocated extents . : 1
Volume serial . . . : DSM561
Device type . . . . : 3390
Data class . . . . . : DEFAULT
Organization . . . : PO Current Utilization
Record format . . . : VB Used cylinders . . : 1
Record length . . . : 255 Used extents . . . : 1
Block size . . . . : 27998
1st extent cylinders: 10
Secondary cylinders : 0 Dates
Data set name type : PDS Creation date . . . : 2013/10/22
Referenced date . . : 2013/10/22
Expiration date . . : 2050/12/25
Also, it seems to start erroring when I use all cylinders allocated, but when I clear the members out that have been moved, I noticed the Current Utilization doesn't change back to 1...is there a delayed response, or how do the cylinders work in regards to storage space?