Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us