BPXWDYN-Utility to Allocate File

BPXWDYN is IBM supplied utility. The main use of it is we can dynamically allocate a file in the COBOL/PLi program.

Cobol Program:

01 WS-TEXT     PIC X(55) VALUE          

“ALLOC FI(OUT) DS(‘WORK.TAPE’) NEW KEEP UNIT(TAPE) REUSE”

After this,

CALL BPXWDYN USING WS-TEXT.

After calling this program, then the said file will be allocated.

Advertisements

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.