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: 287
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: 287
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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am


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