Thanks all. I got it working with MACRF=(GL,PL) and using PUTX.
Tony Thigpen David W Noon wrote on 04/08/2017 11:20 AM:
On Fri, 7 Apr 2017 19:09:09 -0400, Tony Thigpen ([email protected]) wrote about "Assembler question" (in <[email protected]>): [snip]OPEN (HPPCTL,UPDAT)HPPCTL DCB DSORG=PS,RECFM=F,LRECL=100,DDNAME=HPPCTL, BLKSIZE=(100), MACRF=(GM),EODAD=PPCTLOUTYou have specified UPDAT in your OPEN but your MACRF only has GM. If you really are updating the dataset in place, you should have MACRF=(GL,PL), or if you are only reading the dataset then your OPEN macro should specify INPUT rather than UPDAT. For either INPUT or UPDAT, you do not need to specify RECFM, LRECL or BLKSIZE, as these will be taken from the format-1 DSCB. Specifying these unnecessarily can corrupt the format-1, as the access method takes your word for these values, not the existing ones in the format-1, so any differences are put into the format-1 during the CLOSE macro -- at least for UPDAT. HTH
---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
