Re: Change HLQ of file being created
Posted: Tue Jan 03, 2023 9:41 pm
Sure it will, just add the 'gdgnt' option to set the S99GDGNT flag in the S99FLAG1 field. See Table 5. Additional keys used for dynamic allocation in the 'Using REXX and z/OS UNIX System Services' manual.
sample:
sample:
cc=bpxwdyn('alloc da(a.test.gdg(+1)) new catalog gdgnt',
'lrecl(80) recfm(f,b) blksize(0)',
'tracks space(1,1) unit(sysda) dd(dd1) reuse')
cc=bpxwdyn('alloc da(a.test.gdg(+1)) new catalog gdgnt',
'lrecl(80) recfm(f,b) blksize(0)',
'tracks space(1,1) unit(sysda) dd(dd1) reuse')
'lrecl(80) recfm(f,b) blksize(0)',
'tracks space(1,1) unit(sysda) dd(dd1) reuse')
cc=bpxwdyn('alloc da(a.test.gdg(+1)) new catalog gdgnt',
'lrecl(80) recfm(f,b) blksize(0)',
'tracks space(1,1) unit(sysda) dd(dd1) reuse')