IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Dynamic allocation information retreieval


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Wed Dec 10, 2014 7:03 pm
Reply with quote

I am trying to use dynamic allocation information retrieval to obtain the DSORG for the data set allocated to a DD name. I've run into a couple of unexpected issues.
  1. DD not allocated. DYNALLOC returns w/ RC = 0 and no other indication of a problem.
  2. Data set specified by the DD statement does not exist on the volume. As with the first bullet, DYNALLOC returns w/ RC = 0 and no other indication of a problem.
I actually encountered the second bullet first, and only encountered the first bullet when I forced a bad DD name. In both cases, I wanted to verify my DAIRFAIL code was working.

In the real world, the app won't encounter the first error as it has already verified the DD exists and defines a DASD volume, but the app could get the second error.

Anyone have any thoughts?
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Mon Dec 15, 2014 7:08 am
Reply with quote

I goofed. When the DD is not allocated, DYNALLOC ends w/ RC = 4. The DAIRFAIL message is pretty bad -

IKJ56247I FILE INFO-RETRIEVAL NOT PERFORMED, IS NOT ALLOCATED
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Capturing Job Execution Information All Other Mainframe Topics 3
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts JCL Dynamic System Symbols JCL & VSAM 3
No new posts Synctool-dynamic split job for varyin... JCL & VSAM 7
Search our Forums:

Back to Top