Michael, this is the most typical of SVC 99 functions: allocate a dataset
and then open it. I am going to guess that either there is some "usual"
problem with opening the dataset or else you have some Insectus programmus.
        
To eliminate the former cause, just temporarily add //MYDD DD DSN= etc. to
your JCL and hard-code MYDD in the DCB. Comment out the instruction that
moves the DD name into the DCB and run your code. If it fails, then you have
a programming 101 problem with opening a dataset.

If it succeeds, then the problem is either that your SVC 99 didn't really
work (you are not actually calling SVC 99 or not actually getting a zero) or
more likely a problem in moving the DD name into the DCB. Double- and
triple-deskcheck your work. If you can't see a problem, insert a dump
request just before the OPEN. Check the appearance of the DCB, and
especially the DD name and surrounding fields, against the DCB layout from
the DCBD macro. If necessary, go back to the hard-coded DD name and take
another dump just before the open. Compare the two DCBs.

HTH,

Charles

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to