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 Usergroups Profile Log in to check your private messages Log in
 

 

create a dataset in cobol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
srivasab

New User


Joined: 25 May 2005
Posts: 2
Location: india

PostPosted: Thu Mar 09, 2006 12:44 pm    Post subject: create a dataset in cobol
Reply with quote

is there any way to create a net dataset (sequential or partioned) using cobol program, not the jcl.
thanks for help
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Mar 09, 2006 6:25 pm    Post subject: Re: create a dataset in cobol
Reply with quote

You can

- Use the BPXWDYN (Dynamic Allocation) program. Search for it.

- Use a TSO ALLOC command by calling the IKJTSOEV and IKJEFTSR programs. Again, search for it.

- Call the IDCAMS program, using the IDCAMS ALLOC command as input.

- Run the program in a TSO/ISPF address space and use all of the available TSO and ISPF services you want.
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 288
Location: Basel, Switzerland

PostPosted: Thu Mar 09, 2006 7:51 pm    Post subject:
Reply with quote

no, in cobol there is nothing like this.
you have to use any utility, which is
able to do this as mentioned above.
you can also write your own assembler program,
in assembler you can do everything...

martin9
Back to top
View user's profile Send private message
srivasab

New User


Joined: 25 May 2005
Posts: 2
Location: india

PostPosted: Thu Mar 09, 2006 11:09 pm    Post subject:
Reply with quote

well last three will not be suiting me but the BPXWDYN (Dynamic Allocation) utility is great . i'll try to search it as i never used it.
anyways ....
thanks guys
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 288
Location: Basel, Switzerland

PostPosted: Thu Mar 09, 2006 11:52 pm    Post subject:
Reply with quote

i cannot tell about bpxwdyn for datasets,
but this reminds me of UnixSystemServices
for z/OS. Therefore i assumed this to allocate
any file for USS. Pls try it out and tell us...

martin9
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Fri Mar 10, 2006 1:21 am    Post subject: Re: create a dataset in cobol
Reply with quote

This might be a good starting point:

ftp://ftp.software.ibm.com/s390/zos/tools/bpxwdyn/bpxwdyn.html
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 Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am


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