I am writing a cics program and database is used VSAM .

About CICS and BMS - In this Mainframe Forum - You can post your queries on CICS

Moderators: DikDude, Natarajan, Moderator Group

Post Reply
mainframe5
Active Member
Posts: 59
Joined: Tue Jul 24, 2007 7:25 pm

I am writing a cics program and database is used VSAM .

Post by mainframe5 » Thu Dec 13, 2007 6:13 pm

I am writing a cics program and database is used VSAM .plesae give me step to connect a vsam file to my cics program.

User avatar
Krishna
Site Admin
Posts: 1052
Joined: Fri Jan 27, 2006 7:50 am

Post by Krishna » Fri Dec 14, 2007 10:57 am

You can use following command to read records from CICS Program.

Code: Select all

EXEC CICS READ
     DATASET ('filename')
     INTO    (WS-GROUP)
     LENGTH  (LENGTH OF WS-GROUP)
     RESP    (WS-RESP)
END-EXEC

EVALUATE WS-RESP
  WHEN DFHRESP (NORMAL)
            ----------------------------
  WHEN DFHRESP (NOTFND)
            ----------------------------
  WHEN OTHER
           -----------------------------
END-EVALUATE

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