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

create a dataset in cobol


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Thu Mar 09, 2006 6:25 pm
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
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
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
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

Global Moderator


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

PostPosted: Fri Mar 10, 2006 1:21 am
Reply with quote

This might be a good starting point:

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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 2
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
Search our Forums:

Back to Top