Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search 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 -> SMS & VSAM
Author Message
mastrahoyar

New User


Joined: 03 Mar 2007
Posts: 8
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
References
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3505
Location: Brussels once more ...

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: 3070
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: 1129
Location: Mumbai - 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: 72
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM All times are GMT + 6 Hours
Page 1 of 1