Search

Sunday, January 13, 2013

Common CECI CICS commands used while debugging


CECI Commands that can be used to test or debug any CICS program

There are many commands in CICS which can be very handy when any developer wants to do unit testing.

CECI READ FIL(XYZ) RID(&A)

 Give F5 and define &A give length for that temporary character

When you give above command it will not read file until it is open. It will give errors as below: 

NOTOPEN with EIBRESP = 19 and EIBRESP2 = 60

Also if the file is closed and disabled it will give error as:

DISABLED With error EIBRESP = 84 and EIBRESP2 = 50

To avoid above error first set cursor on first record by STARTBR

CECI STARTBR FIL(XYZ) RID(&A)

Enter length for variable A and give READNEXT command which will start reading from first record.

CECI READNEXT FILE(XYZ) RID(&A)

We can also go directly to the record we want by defining key directly into RIDFID field.


 Also to know more on CEDC command please see on link.


No comments:

Post a Comment