Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to create datasets dynamically

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: how to create datasets dynamically
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    Post subject: Re: how to create datasets dynamically
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    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Thu Sep 14, 2006 11:57 am    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Thu Sep 14, 2006 12:44 pm    Post subject:
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    Post subject: Re: how to create datasets dynamically
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts How do I create a mainframe monitorin... anjali.bisht All Other Mainframe Topics 4 Fri Sep 01, 2017 2:20 pm
No new posts Changing sort Card Dynamically vickey_dw DFSORT/ICETOOL 5 Sat Aug 19, 2017 2:33 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am

Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us