accessing vsams

Post your questions related to VSAM

Moderator: Moderator Group

Post Reply
User avatar
Devendra_singh
Member
Posts: 6
Joined: Tue Jul 03, 2007 10:23 am

accessing vsams

Post by Devendra_singh » Thu Jul 12, 2007 2:12 pm

i have to write cobol program which is reading a vsam file and then checking the entry in it and finally updating the vsam.

i m not gtting the logic can anyboy help me.

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Thu Jul 12, 2007 2:52 pm

I don't know about any boys, but I am sure somebody can help.

CICS or Batch?
how is your FD phrased?
what is your open statement
how are you reading, updating?
what logic are you currently using?
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

User avatar
Devendra_singh
Member
Posts: 6
Joined: Tue Jul 03, 2007 10:23 am

Post by Devendra_singh » Thu Jul 12, 2007 3:37 pm

well actually i am new to mainframes i want a cobol program that is reading the vsam file which i have created and then checking some values and then updating the vsam file.
this is actually a library information system which have 3 vsam files bookstatus , catalog of record and employee info.
we have to write 3 modules loan(return,issue) , update (insert,update,delete). thats all. if you can help.
dbzTHEdinosauer wrote:I don't know about any boys, but I am sure somebody can help.

CICS or Batch?
how is your FD phrased?
what is your open statement
how are you reading, updating?
what logic are you currently using?

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Thu Jul 12, 2007 4:14 pm

still did not answer about CICS or Batch, E-Cobol or os390?

Use the search manuals link at top of the page, access a cobol manual. There are always example programs within the documentation.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

User avatar
Devendra_singh
Member
Posts: 6
Joined: Tue Jul 03, 2007 10:23 am

Post by Devendra_singh » Thu Jul 12, 2007 4:25 pm

i am using os390 and batch

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Thu Jul 12, 2007 5:44 pm

This link is to a COBOL Programming guide. Look at APPENDIX1.4.1 IGYTCARA: batch application, which provides detailed examples of how to do what you want.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others