Portal | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Dynamic allocation information retreieval

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
steve-myers

Active Member


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

PostPosted: Wed Dec 10, 2014 7:03 pm    Post subject: Dynamic allocation information retreieval
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: 859
Location: The Universe

PostPosted: Mon Dec 15, 2014 7:08 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Control-M Information. Vineet CLIST & REXX 1 Mon Sep 21, 2020 6:32 pm
No new posts how to read accounting information in... jzhardy COBOL Programming 1 Mon Sep 21, 2020 9:57 am
No new posts Group selective VB records - Trailer ... Premnath_TJ DFSORT/ICETOOL 12 Sun Sep 13, 2020 3:38 am
No new posts Dynamic file read via JCL abdulrafi JCL & VSAM 4 Fri Aug 14, 2020 11:51 am
No new posts Dynamic cursor name in Cobol program Jlevine COBOL Programming 1 Fri Feb 14, 2020 2:55 am

Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us