Read these CICS set of questions to crack your next interview

The best CICS Questions

Q.1) what is difference between call and link ?

Answer: In case of call , whenever you do changes to the called program you need to compile the calling program also. In case of link , it is not needed .

Q.2) what are the differences between DFHCOMMAREA   and TSQ ?

Answer: both are used to save data among tasks. but

  1. commarea is private to that transaction only . like every transaction has its own commarea created by cics as soon as the transaction is initiated . however tsq , if qid is known can be accessed by other transactions also
  2. commarea length is s9(4) comp ie 65k . but tsq can have any length.
  3. commarea is available only during the transaction is running. tsq if created with auxiliary option resides in aux memory and available even if main memory crashes.
  4. Normally commarea is used to tranfer data from one task to another while tsq is used widely within the task as a scratch pad.

Q.3) What is Communication Area?

Answer: Communication Area is used to pass data between the programmer between the task.

Q.4) Which of the following statements correctly describe the syntax of CICS command language?

A) If an EXEC CICS command must be continued onto a second line a hyphen (-) must be coded in column 7 of the continued line.

B) B) If an EXEC CICS command must be continued onto a second line an ‘X’ must be coded in column 72 of each line to be continued.

C) An EXEC CICS command CANNOT be coded within a COBOL IF statement,between the IF command and the period (.) ending it.

D) The END-EXEC delimiter is optional and never needs to be placed at the end of a CICS command.

E) The options specified within an EXEC CICS command can be in any order. For example

'EXEC CICS

SEND FROM(MSG1)

LENGTH(30)

END-EXEC' can also be coded

'EXEC CICS

SEND LENGTH(30)

FROM(MSG1)

END-EXEC'

Answer: E) The options specified within an EXEC CICS command can be in any order.

For example ‘EXEC CICS SEND FROM(MSG1) LENGTH(30) END-EXEC’ can also be coded ‘EXEC CICS SEND LENGTH(30) FROM(MSG1) END-EXEC’

Q.5) A CICS program ABENDS with an ASRA ABEND code. What is its meaning?

A) A link was issued to a program whose name does not exist in the PPT (Program Processing Table).

B) A program attempted to use a map that is not defined in the PCT (Program Control Table).

C) A security violation has occurred. The operator is not defined with the proper authority in the SNT (Sign-on Table) to use a particular file.

D) A program interrupt (0C0 or 0C1 or 0C2 or …) has occurred in a CICS program. E) An I/O error has occurred when attempting to use a VSAM file from a CICS program

Answer: D) A program interrupt (0C0 or 0C1 or 0C2 or …) has occurred in a CICS program.

Q.6) Which of the following commands, when issued by 2 different programs running at the same time, will prevent simultaneous use of resource ‘SINGLE’? .

B) EXEC CICS PROTECT RESOURCE(‘SINGLE’) LENGTH(6) END-EXEC. C) EXEC CICS HOLD RESOURCE(‘SINGLE’)

LENGTH(6) END-EXEC. D) EXEC CICS TASK SINGLE(‘SINGLE’) LENGTH(6) END-EXEC. E) EXEC CICS EXCLUSIVE

RESOURCE(‘SINGLE’) LENGTH(6) END-EXEC.

Answer: E) EXEC CICS EXCLUSIVE RESOURCE(‘SINGLE’) LENGTH(6) END-EXEC

Q.7)

The map shown below is displayed with: EXEC CICS SEND MAP(‘MAP1’) MAPSET(‘MAP1S’) MAPONLY END-EXEC.

After the screen is displayed, the operator enters 1 character, the letter ‘X’.Where will the cursor now appear on the screen?

MAP1S DFHMSD TYPE=MAP,MODE=INOUT,CTRL=(FREEKB,FRSET),LANG=COBOL, X TIOAPFX=YESMAP1

DFHMDI SIZE=(24,80)

DFHMDF POS=(5,1),ATTRB=UNPROT,LENGTH=1

FIELD2 DFHMDF POS=(5,3),ATTRB=UNPROT,LENGTH=1

FIELD3 DFHMDF POS=(5,5),ATTRB=(UNPROT,IC),LENGTH=1

FIELD4 DFHMDF POS=(5,7),ATTRB=ASKIP,LENGTH=1

FIELD5 DFHMDF POS=(5,9),ATTRB=UNPROT,LENGTH=1,INITIAL=’Z’

DFHMDF POS=(5,11),ATTRB=ASKIP,LENGTH=1

DFHMSD TYPE=FINAL

A) In the field with a POS=(5,1)

B) In FIELD2.

C) In FIELD3.

D) In FIELD4.

E) In FIELD5.

Q.8) How can you accomplish breakpoint in interest?

Answer: U-for unconditional break point, C-for conditional break point, and A-for automatic break point

Q.9) how many ways are there for initiating a transaction?what are they?

Answer: There are six ways in initiating a transaction.they are as follows.

  1. embedding four character transid on the top       left most corner of the screen.
  2. making use of EXEC CICS START TRANSID ( )
  3. making use of EXEC CICS RETURN TRANSID ( )
  4. By defining the transid in DCT ( destination control table) to enable ATI (AUTOMATIC TASK INITIATION)
  5. Making use of PLT ( program list table)
  6. By associating four character transid in PCT (program control table)

Q.10) which type of TDQ is read destructive?

Answer: intrapartition tdq is read destructive. extrapartition tdq is not read destructive.

Q.11) The error code AEIY?

Answer: this is the error code for length, if length of the source data is more than the receiving field, this error will occur. this is the correct answer, previously i mentioned it as program id error. sorry for the wrong information.

Q.12) WHAT IS THE SIZE OF COMMAREA ?

Answer: THE DEFAULT COMMAREA SIZE IS 65K.

Q.13) What is ASRA ABEND in CICS?

Answer: It occurs when program interuption takes place.e.g.: when alphanumeric string moved to numeric data item OR when arithmetic calculations performed on on numeric data item OR when an attempt made to read an occurance of a table beyond the defind occurances. ISN’T IT?

Q.14) Very important question: What is a two Phase commit in CICS?

Answer: This occurs when a programmer Issues a Exec CICS Syncpoint command. this is called two phase because CICS will first commit changes to the resources under its control like VSAM files. and the DB2 changes are committed. Usually CICS signals Db2 to complete the next phase and release all the locks.

Q.15) Answer to ANON’s question, difference between TSQ & TDQ

Answer: TDQ is read destructive, TSQ is not. TSQ can be created dynamically, TDQ cannot be created dynamically. TSQ is temporary in nature (i:e it will be deleted when the program finishes execution, unless it is made permanent by making a entry in the Temporary Storage Table), TDQ is not. Hope this will suffice

Advertisements

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.