I am trying to change a program from using IKJEFT01 in a started task to 
IRXJCL.

The REXX statement in TSO:

"ALLOC FI(OUT) DS('WORK.TAPE') NEW KEEP UNIT(TAPE) REUSE"

works fine. The statement when converted to BPXWDYN:

CALL BPXWDYN("ALLOC DD(OUT) DA('WORK.TAPE') NEW KEEP UNIT(TAPE) 
REUSE")

Gives me a Return Code 20 with the following message:

IKJ56221I DATA SET WORK.TAPE NOT ALLOCATED, VOLUME NOT AVAILABLE+
IKJ56221I VOLUME  NECESSARY TO SATISFY YOUR REQUEST NOT ON 
SYSTEM, AND CANNOT BE MOUNTED

While I mentioned running this as a started task, it is failing in batch with 
my 
USERID.

I am at a loss as to:

a) What is the difference between the two types of allocation. I wouldn't 
expect any difference, but obviously there is.

b) What the heck is the IKJ56221I trying to tell me. The M&C is even less 
clear than the message.

c) How can I fix this?

Is there anybody with more BPXWDYN than I that can shed some light on this?

Thanks,
Neal

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to