MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Dynamic Allocation

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management
View previous topic :: View next topic  
Author Message
chu_lo
Beginner


Joined: 23 Mar 2006
Posts: 6
Topics: 1

PostPosted: Thu Mar 23, 2006 10:29 am    Post subject: Dynamic Allocation Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Mar 23, 2006 12:32 pm    Post subject: Reply with quote

chu_lo,

Please SEARCH before posting . Check these links


http://mvsforums.com/helpboards/viewtopic.php?t=1905&highlight=bpx

http://mvsforums.com/helpboards/viewtopic.php?t=4572&highlight=bpx

http://mvsforums.com/helpboards/viewtopic.php?t=4494&highlight=bpx

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chu_lo
Beginner


Joined: 23 Mar 2006
Posts: 6
Topics: 1

PostPosted: Thu Mar 23, 2006 2:08 pm    Post subject: Reply with quote

Kolusu,

Thanks for the info. I did run a search, but didn't look far enough.

Regards,

Chu_lo.
Back to top
View user's profile Send private message
chu_lo
Beginner


Joined: 23 Mar 2006
Posts: 6
Topics: 1

PostPosted: Thu Mar 23, 2006 3:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
chu_lo
Beginner


Joined: 23 Mar 2006
Posts: 6
Topics: 1

PostPosted: Thu Mar 23, 2006 3:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Mar 23, 2006 5:47 pm    Post subject: Reply with quote

chu_lo,

Check this link for the documentation of BPXWDYN which gives a brief description of the return codes.

http://mvsforums.com/helpboards/viewtopic.php?t=2520&highlight=bpx

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chu_lo
Beginner


Joined: 23 Mar 2006
Posts: 6
Topics: 1

PostPosted: Sat Mar 25, 2006 3:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
chu_lo
Beginner


Joined: 23 Mar 2006
Posts: 6
Topics: 1

PostPosted: Sat Mar 25, 2006 5:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group