Dynamic allocation in COBOl using BPXWDYN

Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS
Heisenberg
Posts: 7
Joined: Thu Jun 22, 2023 7:30 pm
Skillset: COBOL,DB2,JCL
Referer: Google

Re: Dynamic allocation in COBOl using BPXWDYN

Postby Heisenberg » Fri Jun 23, 2023 4:00 pm

Hello willy jensen,

I tried the free command alone but it did not work. But with REUSE in allocate then freeing the file worked perfectly.

The final command looks like below.

'ALLOC DD(DDNAME) PATH(/u/USERS/userid/file1.text) PATHOPTS(ORDWR,OCREAT) PATHDISP(KEEP,KEEP) PATHMODE(SIRWXU) FILEDATA(RECORD) REUSE'

'FREE DD(DDNAME)'

@willy jensen, sergeyken, Thank you for your help :).


  • Similar Topics
    Replies
    Views
    Last post