|
|
| Author |
Message |
sandhyarenu
New User
Joined: 04 Jan 2007 Posts: 16 Location: India
|
|
|
|
Hi,
Could someone help me with the assembler command to dynamically allocate/deallocate a QSAM File ? I am not sure what these keywords S99VERB,S99VRBIN could mean. |
|
| Back to top |
|
 |
References
|
Posted: Thu May 22, 2008 11:12 am Post subject: Re: |
 |
|
|
 |
bharath_gct2002
New User
Joined: 08 Oct 2007 Posts: 27 Location: Dallas, TX
|
|
| Back to top |
|
 |
Splitted: Thu May 22, 2008 9:30 pm by William Thompson From Topic Dynamically allocating a new PS file in Assembler (PL/I & ASSEMBLER) |
ironmike
New User
Joined: 07 Aug 2005 Posts: 37
|
|
|
|
As the Count of Monte Christo said, "It's complicated..."
You have to build a dynamic allocation parameter block by populating it with the dynamic allocation text units you want to use. There are different types of text units that describe different types of files or devices, even SYSOUT. You then issue the DYNALLOC macro or SVC 99.
Look at the above referenced documents, and @ IBM macros IEFZB4D0 and IEFZB4D2.
Start simple, just try to allocate the file, then if that works try a separate request to free the file. |
|
| Back to top |
|
 |
sandhyarenu
New User
Joined: 04 Jan 2007 Posts: 16 Location: India
|
|
|
|
Thanks much for all the help !! Will try out ! |
|
| Back to top |
|
 |
Pankaj Gupta
New User
Joined: 07 May 2008 Posts: 23 Location: Bangalore
|
|
|
|
| I am still look for the assembler code to be doing th edynamic allocation. Does anyone have a code examples? |
|
| Back to top |
|
 |
Pankaj Gupta
New User
Joined: 07 May 2008 Posts: 23 Location: Bangalore
|
|
|
|
So is anyone having a reply with the examples?
Thank you very much for your informations. |
|
| Back to top |
|
 |
Bill Dennis
Active User
Joined: 17 Aug 2007 Posts: 277 Location: Iowa, USA
|
|
|
|
| The manual in the first link given above has a section with sample Assembler code (Figure 70) as well as descriptions of the parameters and error codes. |
|
| Back to top |
|
 |
Pankaj Gupta
New User
Joined: 07 May 2008 Posts: 23 Location: Bangalore
|
|
|
|
| Thank you... but I cannot be seeing figure 70 anywhere |
|
| Back to top |
|
 |
Bill Dennis
Active User
Joined: 17 Aug 2007 Posts: 277 Location: Iowa, USA
|
|
|
|
| Expand the Chapter "Requesting Dynamic Allocation Functions", you'll see "Example of a Dynamic Allocation Request" listed as a sub-topic. |
|
| Back to top |
|
 |
Pankaj Gupta
New User
Joined: 07 May 2008 Posts: 23 Location: Bangalore
|
|
|
|
Thank you for your help. i have now found the example and have tried it exactly as it is being written.
It gives a return code of 3952 which I cannot find being mentioned. Does anyone know if the code is being accurate? |
|
| Back to top |
|
 |
Pankaj Gupta
New User
Joined: 07 May 2008 Posts: 23 Location: Bangalore
|
|
|
|
Ok, so now I have go this example to seem to work. the return code is being 0.
But this allocates a dataset and gets the DD name from somewhere. but what is this meaning? I want to allocate a dataset to a ddname in my program so that then I can be opening and writing to the ddname. If only they were providing an example of this. it is seeming that so far they have only told half of the story book. |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 7997 Location: 221 B Baker St
|
|
|
|
Hello,
| Quote: |
| But this allocates a dataset and gets the DD name from somewhere. but what is this meaning? |
It does not get the ddname "from somewhere" - you specified the ddname in your code.
It may be a good investment of your time to completely understand the code you now have working before you try to do anything else. |
|
| Back to top |
|
 |
Pankaj Gupta
New User
Joined: 07 May 2008 Posts: 23 Location: Bangalore
|
|
|
|
According to the documentations and comments in the code, this code IS retriving the DD name. The DD name it is NOT being specified anywheres in the code.
This is not making much sense to me but that is what it is saying. |
|
| Back to top |
|
 |
Robert Sample
Senior Member
Joined: 06 Jun 2008 Posts: 565 Location: Atlanta, GA
|
|
|
|
| Is the DD name SYSnnnnn ? |
|
| Back to top |
|
 |
Pankaj Gupta
New User
Joined: 07 May 2008 Posts: 23 Location: Bangalore
|
|
|
|
| What are you meaning? I am providing no DD name because the cod eis being for returning a DD name. There is being no DD name returnd, and why should there? i need the program to be providing a DD name for the file to be allocated to. that is being the whole point of the dynamic allocation. |
|
| Back to top |
|
 |
|
|