Hello
I have two questions on the issue of using BPXWDYN text interface to dynamic allocation services. The environment I’m currently using is a z/OS operating system and I call BPXWDYN through a COBOL program.
The questions are as follows:
• First of all imagine I use dynamic allocation to create a new dataset inside my COBOL program; after the dataset is created the COBOL program opens the dataset to populate it with data. Is it guaranteed that, meanwhile my program is running, no other program can access this dataset?.
• Related to the previous question, I see in the IBM Manual that there exists a HOLD keyword. May anyone explain in detail what is the purpose of this keyword. Moreover, if I try to use it I receive a 58720345 return code saying that I’m using mutually incompatible parameters.
The full invocation parameter is:
ALLOC DD(OTFILE) DSN(WNMT.SCADUC.XAPXAP.ZXDALMA) NEW CATALOG LRECL(80) RECFM(F,B) MSG(WTP) TRACKS SPACE(1000,500) BLKSIZE(27920) RELEASE HOLD
And the invocation is:
CALL BPXWDYN-PGM USING
BPXWDYN-PARM
RETURNING WS-DYN-RC
END-CALL.
Many thanks in advance