View previous topic :: View next topic |
Author |
Message |
chu_lo Beginner
Joined: 23 Mar 2006 Posts: 6 Topics: 1
|
Posted: Thu Mar 23, 2006 10:29 am Post subject: Dynamic Allocation |
|
|
How do you do dynamic allocation? I have a situation where I need to read a dataset whithout specifying a DDNAME in the JCL. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
chu_lo Beginner
Joined: 23 Mar 2006 Posts: 6 Topics: 1
|
Posted: Thu Mar 23, 2006 2:08 pm Post subject: |
|
|
Kolusu,
Thanks for the info. I did run a search, but didn't look far enough.
Regards,
Chu_lo. |
|
Back to top |
|
 |
chu_lo Beginner
Joined: 23 Mar 2006 Posts: 6 Topics: 1
|
Posted: Thu Mar 23, 2006 3:12 pm Post subject: |
|
|
Kolusu,
Any documentation on the return codes for BPXWDYN? I cloned your sample code, ran a test program and ended up getting a return code of 2.
Thanks,
Chu_lo. |
|
Back to top |
|
 |
chu_lo Beginner
Joined: 23 Mar 2006 Posts: 6 Topics: 1
|
Posted: Thu Mar 23, 2006 3:33 pm Post subject: |
|
|
Never mind, Kolusu. I found my problem, as I was in a hurry. But I would still like to know if there is documentation for the return codes. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
chu_lo Beginner
Joined: 23 Mar 2006 Posts: 6 Topics: 1
|
Posted: Sat Mar 25, 2006 3:01 pm Post subject: |
|
|
Kolusu,
Thanks for all the helpful info. Everything worked for me until I came across a GDG file. I have a file, for example: A.B.C(0), that I wanted to read dynamically within the program. When the code executed, it became A.B.C.G0000V00 - which caused an abend. The (0) generation did not get translated into the correct G0000V00 number. How can I overcome this?
Chu_lo. |
|
Back to top |
|
 |
chu_lo Beginner
Joined: 23 Mar 2006 Posts: 6 Topics: 1
|
Posted: Sat Mar 25, 2006 5:28 pm Post subject: |
|
|
Kolusu,
While I was waiting for a response, I ran a search on the topic of GDG and found some useful information. Basically it invloved the use of IDCAMS/LISTCAT. My situation is slightly different in that the dataset names are not specified in the JCL (they are all listed in a PDS member). I guess I'll just issue a call to IDCAMS within my program to pick up the current GnnnnVnn number.
Thanks,
Chu_lo. |
|
Back to top |
|
 |
|
|