Henry Balke
New User
Joined: 21 Sep 2022 Posts: 1 Location: USA
|
|
|
|
Hi ! I have a COBOL program in which I NEED to dynamically ALLOCATE aor new output file, write to it, then close it and FREE it. Then I will allocate another file to the same DD and repeat the process as many times as needed.
I don't know how many output files (all having the same DCB and SPACE parameters) I will need, hence the need for dynamic allocation. The mechanism I need to use is the BPXWDYN (or BPXWDY2 program shipped by IBM.
I have seen many dynamic allocation examples for input files, and several purportedly valid examples of BPXWDYN/DY2 call strings for output files. Unfortunately none of the output examples have worked.
This is really not some exotic or outlandish requirement -- every modern language provides this facility. I know BPXWDYN/DY2 does -- I just cannot get it to work.
Could someone PLEASE post a -- working -- COBOL call to BPXW*** allocating an output file with DCB and SPACE and PS parms, and the JCL DD statement to go with it ? HUGELY appreciate it ??? Thanks all for your attention to this |
|