Sreejith wrote: |
Hi,
Did anyone successfully managed to use BPXWDYN to read PDS member ? I use the same code given above by Kolusu. It work for a dataset, but if I use a PDS it abends with 4072 and the return code from BPXWDYN is 0002M. The dataset I am using is PDS not a PDSE. Any idea why I am getting this error. |
Code: |
01 PDS-STRING. 05 PDS-LENGTH PIC S9(4) COMP VALUE 100. 05 PDS-TEXT PIC X(100) VALUE 'ALLOC DD(INFILE) DSN(''YOUR.PDS.FILE(MEMBER)'') SHR'. |
Code: |
ALLOC DD(CCCTRIGF) DSN([i]'dataset.name.here[/i].TRIGGER') NEW CATALOG RECFM(F) LRECL(80) SPACE(1,1) TRACKS DSORG(PS) |
Code: |
CALL 'BPXWDYN' USING WS-ALLOCATION-STRING. |
jim haire wrote: |
Never mind. I figured out what it was.
2. The length of the string being passed to BPXWDYN can be longer than 100. I'm not sure what the maximum length it can be. (Mine is 132). |
output generated using printer-friendly topic mod. All times are GMT - 5 Hours