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: 870
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: 870
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 Remove additional information in SUPE... TSO/ISPF 10
No new posts AFRREBLK - Dynamic DSN IBM Tools 9
This topic is locked: you cannot edit posts or make replies. Control-M Information. CLIST & REXX 1
No new posts how to read accounting information in... COBOL Programming 1
No new posts Group selective VB records - Trailer ... DFSORT/ICETOOL 16
Search our Forums:

Back to Top