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

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 :).
Heisenberg
 
Posts: 7
Joined: Thu Jun 22, 2023 7:30 pm
Has thanked: 3 times
Been thanked: 0 time

Previous

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post