IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to create datasets dynamically


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kbmkris

Active User


Joined: 24 Jun 2006
Posts: 101

PostPosted: Sat Sep 09, 2006 2:47 pm
Reply with quote

hi,

Can anyone explain me how to create dynamic datasets with an example. and how it is getting created?

Thanks,
Bala
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Thu Sep 14, 2006 1:01 am
Reply with quote

What do you mean by a "dynamic dataset"?
Back to top
View user's profile Send private message
kbmkris

Active User


Joined: 24 Jun 2006
Posts: 101

PostPosted: Thu Sep 14, 2006 11:03 am
Reply with quote

datasets that are created through program (e.g. cobol) if some condition satisfies.

Thanks
Bala
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Thu Sep 14, 2006 11:42 am
Reply with quote

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

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Sep 14, 2006 11:57 am
Reply with quote

You can use some forms of dynamic allocation from within COBOL. For example:
- BPXWDYN
- TSO's ALLOCATE command
- SVC99 call

O.
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Thu Sep 14, 2006 12:07 pm
Reply with quote

ofter71,

Could you elobrate more on
- BPXWDYN
- TSO's ALLOCATE command
- SVC99 call ??

How can they used??
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Sep 14, 2006 12:44 pm
Reply with quote

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

New User


Joined: 04 Jan 2006
Posts: 77
Location: Bangalore

PostPosted: Fri Sep 15, 2006 11:47 pm
Reply with quote

Or you can use PUTENV ...

refer http://ibmmainframes.com/viewtopic.php?t=10746&highlight=putenv
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Merging 2 datasets into one DFSORT/ICETOOL 1
No new posts create rexx edit Macro that edits the... CLIST & REXX 3
No new posts COBOL - create and write to output fi... COBOL Programming 0
Search our Forums:

Back to Top