Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to dynamically allocate/deallocate a QSAM File?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER
Author Message
Robert Sample

Senior Member


Joined: 06 Jun 2008
Posts: 941
Location: Atlanta, GA

PostPosted: Fri Oct 10, 2008 7:22 pm    Post subject:
Reply with quote

From the Authorized Assembler Services Guide with emphasis added by me:
Quote:
25.1 An Allocation Overview

Allocation is the process by which the system assigns, or allocates, I/O resources to your job. An I/O resource is a ddname-data set combination, with any associated volumes and devices.

And further from the same manual:
Quote:
25.2.2.7 Considerations When Requesting Dsname or Pathname Allocation

The following topics describe how the system processes your dsname allocation request based on the attributes of your allocation environment and your request.


| Allowing the System to Generate a Ddname: If you do not specify a ddname,
| the system generates one. The ddname created consists of the characters
| 'SYS' followed by five digits, with a maximum value of SYS65535.

You're getting a DDNAME whether or not you wanted one, whether or not you asked for one. The first quote says you cannot do a dynamic allocation without using a DDNAME. The second quote tells you what the DDNAME will be if you don't specify one.

Quote:
There is being no DD name returnd, and why should there?
The answer to your question is because it will be created by the system as part of dynamic allocation -- period.
Back to top
View user's profile Send private message
References
Pankaj Gupta

New User


Joined: 07 May 2008
Posts: 32
Location: Bangalore

PostPosted: Fri Oct 10, 2008 7:25 pm    Post subject:
Reply with quote

Thank you. Ok. So a DD is returned if I do not specify one. That will be ok but in the block where is returnd the DD name I am seeing just spaces. Unless in the assembler language I need to be doing something different to be seeing what SVC 99 has returned.

Is there being a special way of seeing the values returned after such a call as this?
Back to top
View user's profile Send private message
Robert Sample

Senior Member


Joined: 06 Jun 2008
Posts: 941
Location: Atlanta, GA

PostPosted: Fri Oct 10, 2008 7:32 pm    Post subject:
Reply with quote

Since you haven't shown any code, it's pretty much impossible to say what's going on. However, the manual is quite clear -- a DDNAME is allocated, so presumably the DDNAME is available somewhere. I would recommend passing a DDNAME to the dynamic allocation routine, and once you get the zero return code perhaps forcing a dump to find out where that name is stored.
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 8729
Location: 221 B Baker St

PostPosted: Fri Oct 10, 2008 9:16 pm    Post subject:
Reply with quote

Hello,

Quote:
I am providing no DD name because the cod eis being for returning a DD name.
Maybe we are looking at different code. . . The code i looked at specified DD name.

Please post the part of your code that refers to ddname. When posting code, use the "Code" tag for readability.
Back to top
View user's profile Send private message
Pankaj Gupta

New User


Joined: 07 May 2008
Posts: 32
Location: Bangalore

PostPosted: Mon Oct 13, 2008 4:41 pm    Post subject:
Reply with quote

This is the code with the 8 chars for the DD name:

Code:
*                                           
RBLEN    EQU (S99RBEND-S99RB)               
DSNTU    DC    AL2(DALDSNAM)               
         DC    X'0001'                     
         DC    X'000C'                     
         DC    C'SWD.TEAMG.SKELS'           
STATUSTU DC    AL2(DALSTATS)               
         DC    X'0001'                     
         DC    X'0001'                     
         DC    X'08'                       
RETDDN   DC    AL2(DALRTDDN)               
         DC    X'0001'                     
         DC    X'0008'                     
         DS    8X                           
         IEFZB4D0                           
         IEFZB4D2                           
*                                     


How I am querying these 8 characters after the SVC 99 call I am not being sure.
Back to top
View user's profile Send private message
Bill Dennis

Senior Member


Joined: 17 Aug 2007
Posts: 313
Location: Iowa, USA

PostPosted: Mon Oct 13, 2008 9:17 pm    Post subject:
Reply with quote

You can specify your desired DDNAME when doing dynamic allocation. Include in your SVC99 parameter list the correct text unit and options.
Back to top
View user's profile Send private message
Pankaj Gupta

New User


Joined: 07 May 2008
Posts: 32
Location: Bangalore

PostPosted: Mon Oct 13, 2008 9:25 pm    Post subject:
Reply with quote

Yes, thank you. But can you be shedding daylight upon this? Sometimes it is esier to understand an example than to invent another time the wheel.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER All times are GMT + 6 HoursGoto page Previous  1, 2
Page 2 of 2