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
 

 

How to createa vsam dataset using COBOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How to createa vsam dataset using COBOL
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: 1452
Location: Chicago, IL

PostPosted: Fri Dec 16, 2005 10:14 pm    Post subject: Re: COBOL Programing
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    Post subject:
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: 1452
Location: Chicago, IL

PostPosted: Fri Dec 16, 2005 10:24 pm    Post subject: Re: COBOL Programing
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    Post subject: Re: How to createa vsam dataset using COBOL
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    Post subject:
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    Post subject: Re: How to createa vsam dataset using COBOL
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    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 Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm


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