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: 4649
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: 290
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: 290
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: 4649
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 Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am


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