View previous topic :: View next topic
|
Author |
Message |
kbmkris
Active User
Joined: 24 Jun 2006 Posts: 101
|
|
|
|
hi,
Can anyone explain me how to create dynamic datasets with an example. and how it is getting created?
Thanks,
Bala |
|
Back to top |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
What do you mean by a "dynamic dataset"? |
|
Back to top |
|
|
kbmkris
Active User
Joined: 24 Jun 2006 Posts: 101
|
|
|
|
datasets that are created through program (e.g. cobol) if some condition satisfies.
Thanks
Bala |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
hi,
You can't have SO CALLED dynamic datasets in the JCL coz they should be created at run time.
All you need to do is...write a cobol program which edits the JCL(JCL is the INPUT) and write the Dynamic Datasets using the CObol and Submit it using Internal Reader.
~Vamsi |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You can use some forms of dynamic allocation from within COBOL. For example:
- BPXWDYN
- TSO's ALLOCATE command
- SVC99 call
O. |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
ofter71,
Could you elobrate more on
- BPXWDYN
- TSO's ALLOCATE command
- SVC99 call ??
How can they used?? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
The documentation of BPXWDYN can be found here.
ALLOCATE is a TSO command that can be found in the fine manual. An example of how to invokw TSO commands from within COBOL can be found here.
O. |
|
Back to top |
|
|
new2cobol
New User
Joined: 04 Jan 2006 Posts: 77 Location: Bangalore
|
|
Back to top |
|
|
|