View previous topic :: View next topic
|
Author |
Message |
mastrahoyar
New User
Joined: 03 Mar 2007 Posts: 17 Location: hyd
|
|
|
|
Hi,
How can we define VSAM file in our COBOL program? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
yogeshwar_ade
Active User
Joined: 31 Aug 2006 Posts: 103 Location: INDIA
|
|
|
|
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 |
|
|
|