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 can we define a VSAM file in cobol?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
mastrahoyar

New User


Joined: 03 Mar 2007
Posts: 17
Location: hyd

PostPosted: Thu May 22, 2008 4:18 pm    Post subject: How can we define a VSAM file in cobol?
Reply with quote

Hi,

How can we define VSAM file in our COBOL program?
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu May 22, 2008 4:20 pm    Post subject:
Reply with quote

How do you mean define ............

a) a physical define as in IDCAMS delete / define.
b) define the file as a VSAM file to the program.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Thu May 22, 2008 4:25 pm    Post subject: Reply to: How can we define a VSAM file in cobol?
Reply with quote

to use vsam files inside cobol programs
click on the programs link at the top of the page and scroll down to the cobol vsam samples

to define ( allocate ) a VSAM cluster
click on the JCLs link at the top of the page and scroll down to the
MVS utilities IDCAMS section
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Thu May 22, 2008 4:42 pm    Post subject: Reply to: How can we define a VSAM file in cobol?
Reply with quote

mastra,

Identify and define the files in the ENVIRONMENT and the DATADIVISION. Then you can read the records in the PROCEDURE DIVISION.

check the COBOL manual available in the manuals section.
Back to top
View user's profile Send private message
yogeshwar_ade

Active User


Joined: 31 Aug 2006
Posts: 103
Location: INDIA

PostPosted: Thu May 22, 2008 4:49 pm    Post subject: Reply to: How can we define a VSAM file in cobol?
Reply with quote

This one is Basic query and you will find its solution in every COBOL Docs. Make a search on this FORUM or Googled it.

Yogeshwar
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am


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