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: 10231
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 Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 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


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