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

How to createa vsam dataset using COBOL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ranjitbhingare

New User


Joined: 30 Nov 2005
Posts: 94
Location: PUNE

PostPosted: Fri Dec 16, 2005 10:02 pm
Reply with quote

How to createa vsam dataset using COBOL?
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Fri Dec 16, 2005 10:14 pm
Reply with quote

Can dataset be created by a COBOL Program... Its the JOB (JCL) which does so....

Datasets only been referred in programs....

Regards,

Priyesh.
Back to top
View user's profile Send private message
ranjitbhingare

New User


Joined: 30 Nov 2005
Posts: 94
Location: PUNE

PostPosted: Fri Dec 16, 2005 10:18 pm
Reply with quote

I know there is some way by which you can give JCL statements in a cobol program.

Just want to know how to do that.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Fri Dec 16, 2005 10:24 pm
Reply with quote

Quote:
I know there is some way by which you can give JCL statements in a cobol program.

Just want to know how to do that.

Here are the links for your answer....
http://ibmmainframes.com/viewtopic.php?t=2747
http://ibmmainframes.com/viewtopic.php?t=921
http://ibmmainframes.com/viewtopic.php?t=555
http://ibmmainframes.com/viewtopic.php?t=299

Regards,

Priyesh.
Back to top
View user's profile Send private message
ranjitbhingare

New User


Joined: 30 Nov 2005
Posts: 94
Location: PUNE

PostPosted: Sat Dec 17, 2005 2:51 pm
Reply with quote

Thanks a lot !
I will try and let you know.
Back to top
View user's profile Send private message
k_vikram07

New User


Joined: 23 Nov 2005
Posts: 35

PostPosted: Sun Dec 18, 2005 1:22 pm
Reply with quote

YOu can use the IDCAMS utility in the program to create it.
It is the module of IDCAMS which can create the VSAM file.
Not sure on how to use this exactly. But there is a way for it.

Call IDCAMS using parm1dd.

Thanks
Vik.
Back to top
View user's profile Send private message
senthils

Active User


Joined: 15 Nov 2005
Posts: 117
Location: Chennai, India

PostPosted: Tue Dec 20, 2005 2:35 pm
Reply with quote

There are programs like BPXWDYN which can be called from a COBOL program. These are used to execute TSO commands from COBOL program. So we can issue TSO ALLOCATE command from the program to allocate new datasets.

I am attaching a document for further reference. I haven't tried it out myself but I am sure that it will work.
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 3
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 Access to non cataloged VSAM file JCL & VSAM 18
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
Search our Forums:

Back to Top