211 CICS Interview Questions Answers Guide
211 CICS Interview Questions Answers Guide
Answers
If you find any question or answer is incorrect or incomplete then you can submit your question or
answer directly with out any registration or login at our website. You just need to visit CICS
Interview Questions And Answers to add your answer click on the Submit Your Answer links on the
website; with each question to post your answer, if you want to ask any question then you will have a
link Submit Your Question; that's will add your question in CICS category. To ensure quality, each
submission is checked by our team, before it becomes live. This CICS Interview preparation PDF was
generated at Saturday 6th February, 2021
You can follow us on FaceBook for latest Jobs, Updates and other interviews material.
www.facebook.com/InterviewQuestionsAnswers.Org
If you need any further assistance or have queries regarding this document or its material or any of
other inquiry, please do not hesitate to contact us.
Best Of Luck.
Question - 1:
What is the difference between START and XCTL?
ue
Ans:
START is used to start a new task. It is a interval control command. XCTL is used to pass control to a program within the same task. It is a program control
command.
st
Question - 2:
io
Question - 3:
A
Question - 4:
Can you access ESDS files from CICS?
er
Ans:
Yes
s.
Question - 5:
O
No
View All Answers
G
Question - 6:
How would you resolve an ASRA abend?
Ans:
In COBOL II start with CEBR, and get the offset/instruction.
View All Answers
Question - 7:
What is an AICA abend?
Ans:
Runaway Task.
View All Answers
Question - 8:
Copyright © https://InterviewQuestionsAnswers.org Page 3/27
CICS Interview Questions And Answers
Question - 9:
te
Question - 10:
Can you use DYNAMIC calls in CICS?
w
Ans:
Yes, the called routine must be defined in PPT and the calling program must use CALL identifier...
View All Answers
Q
Question - 11:
ue
Question - 12:
io
Question - 13:
A
Question - 14:
What is an ASRA abend?
er
Ans:
Any data exception problem SOC7, SOC4 etc.
s.
Question - 15:
O
Question - 16:
What is the use of DCT?
Ans:
Destination Control Table used define TDQs
View All Answers
Question - 17:
When you compile a CICS program, the (pre) compiler puts an extra chunk of code. Where does it get included and that is it called? What is its length?
Ans:
DFHEIBLK, DFHCOMMAREA.
View All Answers
Question - 18:
Copyright © https://InterviewQuestionsAnswers.org Page 4/27
CICS Interview Questions And Answers
Question - 19:
What is the attribute byte?
rv
Ans:
Defines the display/transmission of field. Most cases is an output field from the program.
ie
Question - 20:
w
The physical map is the load module and the symbolic map is the data structure.
View All Answers
ue
Question - 21:
Can a program change protected field?
Ans:
st
NO
View All Answers
io
Question - 22:
What is the difference between a Symbolic map and Physical map?
ns
Ans:
SYMBOLIC MAP IS USED BY USER AND PHYSICAL MAP IS USED BY SYSTEM
View All Answers
A
Question - 23:
ns
Question - 24:
er
Pseudo-conversational transactions are almost always the preferred method. In these mode CICS releases resources between responses to user input, i.e. the task is
ended awaiting the user response.
View All Answers
O
Question - 25:
R
DB2 What is the difference between a package and a plan. How does one bind 2 versions of a CICS transaction with the same module name in two different CICS
regions that share the same DB2 subsystem?
G
Ans:
Package and plan are usually used synonymously, as in this site. Both contain optimized code for SQL statements - a package for a single program, module or
subroutine contained in the database request module (DBRM) library. A plan may contain multiple packages and pointers to package that could be referenced in two
different plans.
View All Answers
Question - 26:
What is the ABEND command and when would you use it?
Ans:
The ABEND command forces a task to end abnormally. It creates a transaction dump and invokes the dynamic transaction backout.
View All Answers
Question - 27:
What is the CICS LOAD command?
Ans:
The LOAD command retrieves an object program from disk and loads it into main storage - it's primarily used for a constant table that will be available system-wide.
View All Answers
In
Question - 28:
What is task control and what are the CICS commands associated with it?
te
Ans:
Task control refers to the CICS functions that manage the execution of tasks. Task control commands are SUSPEND, ENQ, and DEQ.
rv
Question - 29:
ie
What is interval control and what are some of the CICS commands associated with it?
Ans:
w
CICS interval control provides a variety of time-related features - common commands are ASKTIME, PORMATTIME, START, RETRIEVE, and CANCEL.
View All Answers
Q
Question - 30:
How do you delete Item 3 in a five-item TSQ?
ue
Ans:
You can't at least not directly. Options, none of them good, inlude:
I. adding a logical-delete flag to the contents of each item;
II. moving item 4 to 3 and 5 to 4 and initializing item 5, all thru rewrites; this is a variant on 1;
st
III. Creating a new 'copy' TSQ that excludes the unwanted item, killing the old TSQ (deleteq ts). writing the new TSQ with the original name from the new TSQ, and
then deleting the 'copy' TSQ. This way, you will get an accurate report from NUMITEMS.
View All Answers
io
Question - 31:
ns
Question - 32:
What is a logical message in CICS?
Ans:
w
A logical message is a single unit of output created by SEND TEXT or SEND MAP commands
BMS collects the separate output from each command and treats them as one entity.
This technique may be used to build CICS reports.
er
Question - 33:
s.
What is CEBR?
Ans:
O
CEBR lets you browse the contents of a specific temorary storage queue.
View All Answers
R
Question - 34:
G
What is CEDF?
Ans:
CEDF is the execute diagnostic facility that can be used for debugging CICS programs.
View All Answers
Question - 35:
What is CECI?
Ans:
CECI is the command level interpreter transid that interactively executes CICS commands. It is a rudimentary CICS command debugger which does not require
coding an entire program.
View All Answers
Question - 36:
What is the significance of RDO?
Ans:
RDO is Resource Definition Online. Since release 1.6 RDO allows resources (terminals, programs, transactions and files) to be defined interactively while CICS is
running.
View All Answers
In
Question - 37:
te
Question - 38:
What is the MASSINSERT option?
w
Ans:
MASSINSERT is a WRITE option that modifies normal VSAM split processing, leaving free space after the inserted record, so subsequent records can be inserted
without splits. it is ended by an UNLOCK command
View All Answers
Q
Question - 39:
ue
Question - 40:
What is Journal Recovery and Dynamic Transaction Backout?
Ans:
ns
Journal Recovery is recovery of changes made to a file during online processing. If a file has I/O problems it is restored from a backup taken before online processing
began and the journalled changes are applied. Dynamic transaction backout is the removal of partial changes made by a failed transaction.
View All Answers
A
Question - 41:
What are transient data sets defined to CICS?
ns
Ans:
They are defined in the destination control table (DCT).
View All Answers
w
Question - 42:
er
They are intrapartition, which can only be accessed from with CICS and extrapartition, which are typically used to collect data online, but process it in a batch
environment.
View All Answers
O
Question - 43:
R
Transient data provides CICS program with a simple method for sequential processing, often used to produce output for 3270 printers
View All Answers
Question - 44:
What is temporary storage?
Ans:
Temporary storage is either main or auiliary storage that allows the program to save data between task invocations.
View All Answers
Question - 45:
What is an ASRA?
Ans:
An ASRA is the CICS interrupt code, the equivalent of an MVS abend code.
View All Answers
Question - 46:
How do you control cursor positioning?
Ans:
In
It's controlled by the cursor option of the SEND MAP command using a direct (0 through 1919) or symbolic value.
View All Answers
te
Question - 47:
What is the meaning and use of the EIBAID field?
rv
Ans:
EIBAID is a key field in the execute interface block; it indicates which attention key the user presse to initiate the task.
View All Answers
ie
Question - 48:
w
Question - 49:
What is the function of the LOAD command?
st
Ans:
To fetch a program, table or map to the main storage.
View All Answers
io
Question - 50:
ns
What is the CICS Command that is used for reading a record from the TDQ?
Ans:
READQ
View All Answers
A
Question - 51:
ns
Question - 52:
Which is the command used for terminating a browse operation?
Ans:
s.
ENDBR
View All Answers
O
Question - 53:
R
Question - 54:
Sync points cannot be requested by the application programs (True or False)?
Ans:
False
View All Answers
Question - 55:
Which is the command that is used to dump the main storage areas related to a task?
Ans:
DUMP
View All Answers
Question - 56:
What is the CICS command that is used to copy a screen image of a terminal into another terminal?
Ans:
In
ISSUE COPY
View All Answers
te
Question - 57:
The EIB field which gives the last CICS command executed is?
rv
Ans:
EIBRCODE
View All Answers
ie
Question - 58:
w
Which is the CICS control program that provides communication services between user written application programs and terminals?
Ans:
Terminal Control Program
Q
Question - 59:
CICS Command level is?
Ans:
st
Question - 60:
TSQs can be written in the Main storage or Auxiliary storage ( True or False)?
ns
Ans:
True
View All Answers
A
Question - 61:
What is difference between call and link?
ns
Ans:
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.
View All Answers
w
Question - 62:
er
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 transfer data from one task to another while TSQ is used widely within the task as a scratch pad.
R
Question - 63:
What is Communication Area?
Ans:
Communication Area is used to pass data between the program or between the task.
View All Answers
Question - 64:
A CICS program ABENDS with an ASRA ABEND code, What is its meaning?
Ans:
A). Alink 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 0C2 ot ...) has occurred in a CICS program
E) An I/O error has occurred when attempting to use a VSAM file from a CICS program
ANS:
Copyright © https://InterviewQuestionsAnswers.org Page 9/27
CICS Interview Questions And Answers
Question - 65:
In
U-for unconditional breakpoint, C-for conditional breakpoint, and A-for automatic breakpoint
View All Answers
rv
Question - 66:
How many ways are there for initiating a transaction ? what are they?
ie
Ans:
There are six ways in initiating a transaction they are as follows.
w
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)
Q
Question - 67:
Which type of TDQ is read destructive?
st
Ans:
Intrapartition TDQ is read destructive. extra partition TDQ is not read destructive.
io
Question - 68:
ns
Question - 69:
ns
Question - 70:
What is ASRAABEND in CICS?
s.
Ans:
It occurs when program interruption takes place. e.g. when alphanumeric string moved to numeric data item OR when arithmetic calculations performed on
nunnumeric data item OR when an attempt made to read an occurrence of a table beyond the defined occurrences.
O
Question - 71:
What is a two Phase commit in CICS?
G
Ans:
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 signal DB2 to complete the next phase and release all the locks.
View All Answers
Question - 72:
Difference between TSQ and TDQ?
Ans:
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.
View All Answers
Question - 73:
In SYMBOLIC Cursor Positioning after moving - 1 to the length field also the cursor is not positioned in that particular field. Give reasons?
Ans:
You have to explicitly specify the word CURSOR between your EXEC CICS and END-EXEC in the program.
View All Answers
In
Question - 74:
What does EIB mean?
te
Ans:
The EIB is the EXECUTIVE INTERFACE BLOCK. It is not the EXECUTE INTERFACE BLOCK. All TP monitors or transaction processor are know as
EXECUTIVEs as they carry out process on behalf of a program module. CICS and DB2 are executives.
rv
Question - 75:
How many exceptional condition can be given in a HANDLE CONDITION?
w
Ans:
Max. of 12 exceptional conditions can be given in a HANDLE CONDITION.
View All Answers
Q
Question - 76:
How do you access the records randomly in TSQ?
ue
Ans:
By specifying the ITEM option
st
View All Answers
Question - 77:
io
Question - 78:
A
Question - 79:
What is the difference between LINK and XCTL?
Ans:
s.
The XCTL command passes control to another program, but the resources requested by the first program may still be allocated. A task does not end until a RETURN
statement is executed. While in LINK command, program control resumes its instruction following the LINK parameter. The disadvantage of LINK is that it requires
that both the calling program and the called program remain in main memory even though both are no longer needed.
O
Question - 80:
What is the difference between CICS Program Control Table (PCT) and CICS Processing Program Table (PPT)?
G
Ans:
PCT contains a list of valid transaction ID. Each transaction ID is paired with the name of the program, CICS will load and execute when the transaction is invoked.
On the other hand, PPT indicates each program's location which pertains to a storage address if the program has already been loaded or a disk location if the program
hasn't been loaded. PPT will also be used to detemine whether it will load a new copy of the program when the transaction is invoked.
View All Answers
Question - 81:
What are the 3 common ways to create maps?
Ans:
The first way is to code a physical map and then code a matching symbolic map in your COBOL program. The second way to create a physical map along with a
matching symbolic map is to code only the physical map using the and SYSPARM option, CICS will automatically create a member in a COPY library. And the third
way is to use a map generator such as SDF ( Screen Definition Facility )
View All Answers
Question - 82:
Copyright © https://InterviewQuestionsAnswers.org Page 11/27
CICS Interview Questions And Answers
What is Quasi-reentrancy?
Ans:
There are times when many users are concurrently using the same program, this is what we call MultiThreading, For example, 50 users are using program A, CICS
will provide 50 Working storage for that program but one Procedure Dividion. And this technique is known as quasi-reentrancy
In
Question - 83:
What is the difference between a physical BMS mapset and a logical BMS mapset?
rv
Ans:
The physical mapset is a load module used to map the data to the screen at execution time. The symbolic map is the actual copybook member used in the program to
reference the input and output fields on the screen.
ie
Question - 84:
w
What CICS facilities can you use to save data between the transactions?
Ans:
Q
Question - 85:
How would you release control of the record in a READ for UPDATE?
Ans:
st
Question - 86:
What is the difference between a RETURN with TRANSID and XCTL? For example program. A is issuing RETURN with TRANSID to program B. Program A. is
ns
Question - 87:
What will be the length of the eibcalen, if the transaction is used to CICS first time?
Ans:
w
Question - 88:
What is DFHEIBLK?
s.
Ans:
DFHEIBLK is Execute Interface Block. It is placed in the linkage section automatically by CICS translator program.
O
It must be the first entry in linkage section. CICS places values prior to giving control to the program and we can find almost any information about our transaction.
View All Answers
R
Question - 89:
G
Question - 90:
What CICS command would you use to read a VSAM KSDS sequentially in ascending order?
Ans:
First issue a STARTBR (start browse), which will position the browse at the desired record. Retrieve records by using subsequent READNEXT commands. Indicate
the end of sequential processing with the ENDBR command. If the generic key is specified in the STARTBR command position in the file will be before the first
record satisfying the generic key. For reading in descending order use the READPREV instead of READNEXT.
View All Answers
Question - 91:
Question - 92:
What is the COMAERA (communication area)?
rv
Ans:
An area used to transfer data between different programs or between subsequent executions of the same program. Needs to be defined in the LINKAGE Section.
View All Answers
ie
Question - 93:
w
Question - 94:
What is a transid and explain the system transid CEMT?
Ans:
st
Transid is a transaction identifier, a four character code used to invoke a CICS task. CEMT is the master terminal transaction that lets you display and change the
status of resources - it is the primary CICS service transaction.
View All Answers
io
Question - 95:
What is an MDT (Modified Data Tag)? Its menaing and use?
ns
Ans:
The modified data tag is the last bit in the attribute byte for each screen field. It indicates whether the corresponding field has been changed.
View All Answers
A
Question - 96:
ns
Question - 97:
What is the common systems area (CSA)?
s.
Ans:
The common systems area is the major CICS control block that contains system information, including pointers to most other CICS control blocks. The CSA points
to all members of STATIC storage.
O
Question - 98:
What is meant by program reentrance?
G
Ans:
A program is considered reentrant if more than one task can execute the code without interfering with the other tasks' execution.
View All Answers
Question - 99:
What is meant by a CICS task?
Ans:
A CICS task exist from the time the operator presses the enter key until the application program returns control to CICS.
View All Answers
Question - 100:
Name some common CICS service programs and explain their usage?
Ans:
Terminal Control, File Control, Task Control, Storage Control, etc, Each CICS service program controls the usage and status for its resource (file, terminal, etc)
Copyright © https://InterviewQuestionsAnswers.org Page 13/27
CICS Interview Questions And Answers
Question - 101:
In
PCT Program Control Table - defines each transaction containing a list of valid transaction identifiers (transid) where each transaction is paired with its matching
program;
PPT Program Processing Table - contains a list of valid program names and maps and whether a current version is in the CICS region or needs to be brought in as a
rv
new copy;
FCT File Control Table - contains a list of files known to CICS, the dataset name and status (closed/open, enable/disabled;)
TCT Terminal Control Table - a list of the terminals known to CICS.
ie
Question - 102:
w
Question - 103:
What is multitasking and multithreading?
Ans:
st
multitasking is the feature supported by the operating system to execute more than one task simultaneously. Multithreading is the system environment where the tasks
are sharing the same programs load module under the multitasking environment. It is a subset of multitasking since it concerns task which use the same program.
io
Question - 104:
ns
Question - 105:
ns
Question - 106:
Explain the term Function Request Shipping?
s.
Ans:
Function request shipping is one of the CICS modes of intercommunication which allows an application program in a local CICS to access resources owned by a
remote CICS.
O
Question - 107:
In an on-line environment, how can you prevent more than one user from accessing the same Transient Data Queue at the same time?
G
Ans:
By issuing an EXEC CICS ENQ against the resource. When processing is completed, a DEQ should be executed.
View All Answers
Question - 108:
When an apllication is invoked via the EXEC CICS START command with the from option, how does the application gain access to the common area?
Ans:
An EXEC CICS RETRIEVE command will access the common area.
View All Answers
Question - 109:
The DFHCOMMARA is used to pass information from one application to another. What are some other ways that this function can be accomplished?
Ans:
You can also pass information in the following ways.
Copyright © https://InterviewQuestionsAnswers.org Page 14/27
CICS Interview Questions And Answers
Question - 110:
How do you define Task Work Area?
rv
Ans:
By defining it on the PCT ( the Program Control Table)
View All Answers
ie
Question - 111:
w
Question - 112:
st
Which CICS command must be issued by the application program in order to gain access to the Common Work Area (CWA)?
Ans:
io
Question - 113:
In which CICS table would you specify the length of the TASK WORK AREA (TWA)?
Ans:
A
Question - 114:
What is a deadlock?
w
Ans:
Deadlock (also known as a "deadly embrace") occurs when a task is waiting for a resource held by another task which, in turn, is waiting for a resources held by the
first task.
er
Question - 115:
What is ENQ in CICS?
O
Ans:
If any one want to restrict Trans-ID to single user, enter trans-id with ENQ. It won't allow any one else to use the same trans-id.
R
View All Answers
Question - 116:
G
Question - 117:
How can you prevent more than one user from accessing the same Transient Data Queue?
Ans:
By issuing an EXEC CICS ENQ against the resource. When processing is completed, a DEQ should be executed.
View All Answers
Question - 118:
How can the fact that EIBCALEN is equal to zeros be of use to an application programmer?
Ans:
When working in a pseudo-conversational mode, EIBCALEN can be checked if it is equal to zero. A programmer can use this condition as a way of determining first
time usage (of the program).
View All Answers
In
Question - 119:
te
Which CICS system program is responsible for handling automatic task initialization?
Ans:
The Transient Data Program (TDP).
rv
Question - 120:
What is the function of DFHMDF BMS macro?
w
Ans:
The DFHMDF macro defines fields, literal, and characteristics of a field.
View All Answers
Q
Question - 121:
Explain the basic difference between Intra partition TDQ and Extra partition TDQ?
ue
Ans:
INTRA PARTITION TD QUEUEs. It is a goup of sequential records which are produced by the same and / or different transaction within a CICS region. These Qs
are stored in only one physical file (VSAM) in a CICS region, which is prepared by the system programmer. Once a record is read from a queuue, the record will be
st
logically removed from the queue; that is the record cannot be read again EXTRA PARTITION TD QUEUEs It is a group of sequential record which interface
between the transaction s of the CICS region and the systems outside of CICS region. Each of there TDQs is a separate physical file, and it may be on the disk, tap,
printer or plotter.
io
Question - 122:
ns
What is the differences between getting the system time with EIBTIME and ASKTIME command?
Ans:
The ASKTIME command is used to request the current date and time. Whereas, the EIBTIME field have the value at the task initiation time.
A
Question - 123:
Explain floating maps with illustration?
Ans:
w
Maps which can positioon themselves relative to the previous maps on the screen or page are known as the floating maps. For this you have to use special positional
operands to LINE and COLUMN parameters of the BMS macro definition. They are SAME, NEXT. Actually this floating map concept is there only in Full BMS
where as it is not available in Min. or Standard BMS macros. RECEIVE MAP is not recommended in the case of floating maps. Hence these maps are normally used
er
to send information such as selected records from a database to screen but not for data entry. A mapset can contain more than one map in it, you may use all these
maps to build a screen. In that case there are two ways to send these maps on to the screen.
i) Use separate SEND MAP commands one for each map involved. or
ii) Use ACCUM operand along with SEND MAP command and while sending really on to the screen use SEND PAGE to display them at one shot. The second one
s.
is called cumulative mapping scheme where you also can use foating maps.
Let's take a situation where you have to build a screen like this
HEADER MAP (no. of A gr. employs)
O
Question - 124:
G
Question - 125:
What is the difference between the INTO and the SET option in the EXEC CICS RECEIVE MAP command?
Ans:
The INTO option moves the information in the TIOA into the reserved specified area, while the SET option simple returns the address of the TIOA to the specified
BLL cell or "address-of" a linkage-section.
View All Answers
Question - 126:
What is the difference between using the READ command with INTO option and SET option?
Copyright © https://InterviewQuestionsAnswers.org Page 16/27
CICS Interview Questions And Answers
Ans:
When we use INTO option with the READ command the data content of the record will be moved into the specified field defined in the Working Storage Section of
the program. When we use SET option with the READ command, CICS sets the address pointer to the address of the record in the file input / output area within
CICS,so that the application program can directly refer to the record without moving the record content into the Working Storage area defined in the program.
In
Therefore, the SET option provides a better performance than the INTO option.
View All Answers
te
Question - 127:
What is MDT?
rv
Ans:
MDT ( Modified Data Tag ) is one bit of the attribute character, If it is off (0), it indicates that this field has not been modified by the terminal operator. If it is on (1),
It indicates that field has been modified by the operator. Only when MDT is on, will the data of the field be sent by the terminal hardware to the host computer (i.e. to
ie
the applcation progam in end). An effective use of MDT drastically reduces the amount of data traffic in the communication line, thereby improving performance
significantly. Therefore, BMS maps and CICS application program should be devloped based on careful considerations for MDT.
View All Answers
w
Question - 128:
Name three ways the Modified Data Tag can be set on?
Q
Ans:
The Modified Data Tag can be set on:
ue
Question - 129:
io
Question - 130:
How to establish dynamic cursor position on a map? How to get the cursor position when we receive a map?
A
Ans:
ns
We dynamically position a cursor through an application program using a symbolic name of the symbolic map by placing -1 into the field length (i.e., fieldname + L)
of the field where you wish to place the cursor. The SEND MAP command to be issued must have the CURSOR option (without value). Also, the mapset must be
coded with MODE = INOUT in the DFHMSD macro. We get the cursor position when we receive a map by checking EIBCPOSN, which is a halfword ( S9(4)
COMP) binary field in EIB, and contains offset position (relatively to zero) of the cursor on the screen.
w
Question - 131:
er
What are the three ways available for a program to position the cursor on the screen?
Ans:
s.
I. Static positioning. Code the insert cursor (IC) in the DFHMDF BMS macro.
II. Relative positioning. Code the CURSOR option with a value relative to zero (position 1.1 is zero)
III. Symbolic positioning. Move high values or -1 the field length in the symbolic map (and code CURSOR on SEND command ).
O
Question - 132:
What is a mapset?
G
Ans:
A mapset is a collection of BMS maps link-edited together.
View All Answers
Question - 133:
Why is a TERM ID recommended in naming a TSQ?
Ans:
In order to avoid confusion and to maintain data security, a strict naming convention for QID will be required in the installation. Moreover, for a terminal-dependent
task (e.g. pseudo-conversation task), the terminal id should be included in QID in order to ensure the uniqueness of TSQ to the task.
View All Answers
Question - 134:
What are the differences between Temporary Storage Queue (TSQ) and Transient Data Quene (TDQ)?
Ans:
Temporary Storage Queue names are dynamically defined in the application program, while TDQs must first be defined in the DCT (Destination Control Table).
When a TDQ contains certain amount of records (Trigger level), A CICS transaction can be started automatically. This does not happen when using a TSQ. TDQ
(extra partition) may be used by batch application; TSQ cannot be accessed in batch. The Transient Data Queue is actually a QSAM file. You may update an existing
item in a TSQ. A record in a TDQ cannot be updated. Records in TSQ can be read randomly. The TDQ can be read only sequentially. Records inTemporary Storage
can be read more than once, while recordes stored in Temporary Data Queues cannot. With TDQs it is "one read" only.
In
Question - 135:
What does the following transactions do?
rv
Ans:
CEDF:CICS-supplied Execution Diagnostic Facility transaction. It provides interactive program execution and debugging functions of a CICS programs.
CEMT: CICS-supplied Extended Master Terminal transaction. It displays or manipulates CICS control environment interactively.
CEBR: CICS-supplied Temporary Storage Browse transaction. It displays the content of Temporary Storage Queue (TSQ).
ie
CECI: CICS-supplied Command Interpreter transaction. It verifies the syntax of a CICS command and executes the command.
View All Answers
w
Question - 136:
What is the function of the Terminal Control table?
Q
Ans:
To register all CICS terminals
ue
Question - 137:
st
Which CICS service transaction is used to gain accessibility to CICS control tables? Mention the one that has the highest priority.?
Ans:
CEDA
io
Question - 138:
Into which table is the terminal id registered?
Ans:
TCT.
A
Question - 139:
Which transient data queue support ATI?
Ans:
w
Question - 140:
Explain the means of supporting pseudo conversation programming. (Eg. Storing and restoring of states, control flow, error handling)?
s.
Ans:
When we send a map using SEND MAP command, Immediately we release the program by using EXEC CICS RETURN command. In this command we mention
O
the TRANSACTION ID which is to be executed after receiving the map. In this command we also specify the data that should be stored in COMMUNICATION
AREA for later use. When this command is executed the corresponding program is released from the memory. After receiving the response from the terminal the
program is again loaded and this time the data which we stored in communication area will be copied into the working storage section. And the map will be received
R
with RECEIVE MAP command. The variable EIBCALEN in EIB holds the length of communication area. In procedure division we checks the value of EIBCALEN
if it is zero, we first send the map followed by RETURN command. Otherwise, that is if EIBCALEN is not zero, we know that this transaction is not running first
time and we receive the map by using RECEIVE MAP command.
G
Question - 141:
How can you start a CICS transaction other than by keying the Transaction ID at the terminal?
Ans:
By coding an EXEC CICS START in the application program
1. By coding the trans id and a trigger level on the DCT table
2. By coding the trans id in the EXEC CICS RETURN command
3. By associating an attention key with the Program Control Table
4. By embedding the TRANSID in the first four positions of a screen to the terminal.
5. By using the Program List Table.
View All Answers
Question - 142:
What are the differences between and EXEC CICS XCTL and EXEC CICS START command?
Ans:
The XCTL command transfer control to another application (having the same Transaction ID), while the START command initiates a new transaction ID (therefore a
new task number). The XCTL continues task on the same terminal. START can initiate a task on another terminal.
View All Answers
In
Question - 143:
te
Linkage Section areas (Commarea from a higher level) remain. All existing locks and queues also remain in effect. With a LINK, however, program storage is also
saved, since the transaction expects to return and use it again.
View All Answers
ie
Question - 144:
w
Question - 145:
What is some of the information available in the EIB area?
Ans:
st
Question - 146:
What is the effect of including the TRANSID in the EXEC CICS RETURN command?
A
Ans:
ns
The next time the end user presses an attention key, CICS will start the transaction specified in the TRANSID option.
View All Answers
Question - 147:
w
To specify the paragrph or program label to which control is to be passed if the "handle conditin" occurs.
View All Answers
s.
Question - 148:
What is the difference between EXEC CICS HANDLE CONDTION and an EXEC CICS IGNORE command?
O
Ans:
HANDLE CONDTION command creates a "go-to" environment. An IGNORE command does not create a go-to environment: instead. it gives control back to the
R
next sequential instruction following the command causing the condition. They are opposites.
View All Answers
G
Question - 149:
When a task suspends all the handle conditions via the PUSH command, how does the task reactivate all the handle conditions?
Ans:
By coding an EXEC CICS POP HANDLE command
View All Answers
Question - 150:
What are the CICS commands available for program control?
Ans:
The following commands are available for the Program Control services:
1. LINK: To pass control to another program at the lower level, expectiong to be returned.
2. XCTL: To pass control to another program at the same level, not expecting to be returned.
3. RETURN: To return to the next higher-level program or CICS.
4. LOAD: to load a program
Copyright © https://InterviewQuestionsAnswers.org Page 19/27
CICS Interview Questions And Answers
Question - 151:
In
Explain the various ways data can be passed between CICS programs?
Ans:
te
Data can be passed between CICS programs in three ways- COMMAREA, TRANSIENT DATA QUEUE $ TEMPORARY STORAGE QUEUE.
Data can be passed to a called program using the COMMAREA option of the LINK or XCTL command in a calling program. The called program may alter the data
content of COMMAREA and the changes will be available to the calling program after the RETURN command is issued in the called program. This implies that the
rv
called program does not have to specify the COMMAREA option in the RETURN command.
If the COMMAREA is used in the calling program, the area must be defined in the Working Storage Section of the program (calling), whereas, in the called program,
the area must be defined as the first area in the Linkage Section . using reserved name DFHCOMMAREA.
ie
Question - 152:
w
It allows the establishing of an exit so cleanup processing can be done in the event of abnormal task termination.
View All Answers
ue
Question - 153:
What happens when a CICS command contains the NOHANDLE option?
Ans:
st
No action is going to be taken for any exceptional conditional occurring during the execution of this command. the abnormal condition that occurred will be ignored
even if an EXEC CICS HANDLE condition exist. It has the same effect as the EXEC CICS IGNORE condition except that it will not cancel the previous HANDLE
CONDTION for any other command.
io
Question - 154:
Explain re-entrancy as applies to CICS?
Ans:
Reentrant program is a program which does not modify itself so that it can reenter to itself and continue processing after an interruption by the operating system
A
which, during the interruption, executes other OS task including OS tasks of the same program. It is also called a "reenterable" program or "serially reusable"
program
A quasi-reentrant program is a reentrant program under the CICS enviroment. That is, the quasi-reentrant program is a CICS program which does not modify itself.
ns
That way it can reenter to itself and continue processing after an interruption by CICS which, during the interruption executes other tasks inluding CICS tasks of the
same program. In order to maintain the quasi- reentrancy, a CICS application program must follow the follow convention:
Constants in Working Storage: The quasi-reentrant program defines only constants in its ordinary data area (e.g. working Storage Section). These constants will never
be modified and shared by the tasks
w
Variable in Dynamic Working Storage: The quasi reentrant program acquires a unique storage area ( called Dynamic Working Storage - DWS) dynamically for each
task by issuing the CICS macro equivalent GETMAIN. All variables will be placed in this DWS for each task. All counter would have to be initialized after the DWS
has been acquired.
er
Question - 155:
s.
The Base Locator for Linkage (BLL) is an addressing convention used to address storage outside the Working Storage Section of an application program. If BLL is
used for the input commands (e.g.: READ, RECEIVE), it will improve the performance, since the program would be accessing directly the input buffer outside of the
R
program. In order to work as intended, the program must construct BLL based on the following convention:
1. The parameter list must be defined by means of a 01 level data definition in the Linkage Section as the first area definition to the Linkage Section, unless a
communication area is being passed to the program, in which case DFHCOMMAREA must be defined first. The parameter list consists of a group of the address
G
pointers, each of which is defined as the full word binary field ( S9(8) COMP). This is called the BLL cells.
2. The parameter list is following by a group of 01 level data definitions, which would be the actual data areas. The first address pointer of the parameter list is set up
by CICS for addressing the parameter list itself. From the second address pointer onward, there is a one-to-one correspondence between the address pointer of the
parameter list and 01 level data definitions.
3. VS COBOL II provides CICS application programs with a significant improvements in the area of addressability through the specifial ADDRESS register.
Therefore, if an application program is written in VS COBOL II, the program is no longer requires building the B
View All Answers
Question - 156:
What are the differences between and EXEC CICS XCTL and an EXEC CICS LINK command?
Ans:
The XCTL command transfer control to an application program at the same logical level ( do not expect to control back), while the lINK command passes control to
an application program at the next logical level and expects controal back.
View All Answers
Question - 157:
Copyright © https://InterviewQuestionsAnswers.org Page 20/27
CICS Interview Questions And Answers
Question - 158:
te
CICS automatically provides some system-related information to each task in a form of EXEC interface BLOCK (EIB), which is unique to the CICS command level.
We can use all the fields of EIB in our application programs right away.
View All Answers
ie
Question - 159:
w
Question - 160:
Explain how to handle exceptional conditions in CICS?
Ans:
st
3. No Handle Option: This option can be specified in any CICS command and it will cause no action to be taken for any exceptional condition occurring during
execution of this command.
4. RESP Option: This option can be specified in any CICS command. If the RESP option is specified in a command, CICS places a response code at a completion of
ns
the command. The application program can check this code, then proceed to the next processing.
View All Answers
Question - 161:
A
How many conditions can you include in a single HANDLE CONDITION command?
Ans:
ns
No more than 16 in a single handle condition. If you need more, then you must code another HANDLE CONDITION command.
View All Answers
w
Question - 162:
What is the COMMAREA (communications area)?
er
Ans:
This is the area of main storage designed to let programs or task communicate with one another. used in programs via RETURN, XCTL and LINK commands.
View All Answers
s.
Question - 163:
O
What option is specified in the SEND command to send only the unnamed fields on to the screen?
Ans:
R
MAPONLY
View All Answers
G
Question - 164:
What is the most common way of building queue-id of a TSQ?
Ans:
(Name the constituents of the Queue ID).
TERMID+TRANSACTION-ID.
View All Answers
Question - 165:
How and where is the TWA size set?
Ans:
TWASIZE=300 in PCT table.
View All Answers
Question - 166:
Code the related portions of CICS/COBOL-I programs to gain addressability to TWA area assigned to a particular task. Assme that the size of TWA area is 300
bytes. What are the advantages if COBOL-II is used in the place of COBOL?
Ans:
In
01 TWA-DATA-LAYOUT.
02 DATA-AREA PIC x(300)
PROCEDURE DIVISION.
ie
......
EXEC CICS ADDRESS
TWA(TWA-PTR)
w
END-EXEC
SERVISE RELOAD TWA-DATA-LAYOUT.
COBOL-II PROGRAM
Q
LINKAGE SECTION
01 TWA-DATA-LAYOUT.
05 DATA-AREA PIC X(300).
ue
PROCEDURE ADDRESS
......
EXEC CICS ADDRESS
st
TWA(ADDRESS OF TWA-DATA-LAYOUT)
END EXEC
....
io
Question - 167:
ns
pseudo-conversational processing.
View All Answers
ns
Question - 168:
What is the function of the CICS translator?
w
Ans:
The CICS translator convert the EXEC CICS commands into call statements for a specific programming language. There are CICS translator for Assembler, COBOL,
er
and PL/1.
View All Answers
s.
Question - 169:
What is the purpose of the Program List Table?
O
Ans:
The Program List Table records the set of application programs that will be executed automatically at CICS start-up time
R
Question - 170:
What are the six different type of argument values in COBOL that can be placed in various options of a CICS command?
Ans:
. Data Value - EX (Literal 8 or 77 KEYLEN PIC S9(4) COMP VALUE8.)
. Data Area - EX (01 RECORD-AREA. 05 FIELD PIC X(5).)
. Pointer-REF -EX (05 POINTER-I PIC S9(8( COMP.) . Name -EX (05 FIELD-NAME PIC X(5) VALUE 'FILEA'.)
. Label - Cobol paragraph name
. HHMMSS - EX (77 TIMEVAL PIC S9(7) COMP3. )
View All Answers
Question - 171:
Into what fields will the date and time values be moved after execution of the above command?
Ans:
EIBDATE and EIBTIME.
View All Answers
Question - 172:
Mention the option (along with argument type) used in a CICS command to retrieve the response code after execution of the command?
Ans:
In
Question - 173:
What are the two ways of breaking a CPU bound process to allow other task to gain access to CPU?
rv
Ans:
EXEC CICS DELAY EXEC CICS DELAY
INTERVAL(hhmmss) TIME(hhmmss)
ie
END-EXEC END-EXEC
View All Answers
w
Question - 174:
What is the EIB parameter and the CICS command used to implement Pseudo-Conversational technique using single PCT - Single PPT entry?
Q
Ans:
EIBCALEN - To check if COMMAREA has been passed in terurn command.
EXEC CICS RETURN
ue
TRANSID(data-name)
COMMAREA(data-area)
LENGTH (data-value)
END-EXEC
st
Question - 175:
io
Specify the requirements for Automatic Task Initiation. (Mention the control table, it is entries and the corresponding Procedure division CICS command).?
Ans:
ns
QUEUE('MSGS'),
FROM(DATA-AREA),
LENGTH(MSG_LEN)
ns
END-EXEC.
View All Answers
w
Question - 176:
Specify CICS transaction initiation process. ( From the perspective of CICS control programs and control tables.)?
er
Ans:
TCP places data in TIOA and corresponding entry into TCT.
KCP acquires the transaction identifier from TIOA and verifies if it is present in PCT.
s.
SCP acquires Storage in Task Control Area (TCA), in which KCP prepares control data for the task.
KCP then loads the application programs mentioned in PCT by looking for it in PPT.
If resident - real storage memory location is not present in the PPT the control is passed to PCP that loads the application program from the physical storage location
O
address given in PPT. The control is then passed to the application program (LOAD module).
View All Answers
R
Question - 177:
What are the attribute values of Skipper and Stopper fields?
G
Ans:
ASKIP. PROT.
View All Answers
Question - 178:
What is the option specified in the read operation to gain multiple concurrent operations on the same dataset?
Ans:
REQID(value)
View All Answers
Question - 179:
Which command is used to release a record on which exclusive control is gained?
Ans:
Question - 180:
In
Specify the CICS command used to read a VSAM record starting with prefix F. Code all the relevant options?
Ans:
te
RIDFLD(data-area)
KEYLENGTH(1)
GENERIC
LENGTH(WK-LEN)
ie
END-EXEC.
View All Answers
w
Question - 181:
How do you dynamically set the CURSOR position to a specific field?
Q
Ans:
MOVE-1 to FIELD + L field. Mention CURSOR option in the SEND command.
ue
Question - 182:
st
How do you set the MDT option to ON status, even if data is not entered?
Ans:
Mention FSET option in DFHMDF or set it dynamically in the program using FIELD+A sttribute field.
io
Question - 183:
What is the CICS command that gives the length of TWA area?
Ans:
EXEC CICS ASSIGN
A
TWALENG(data-value)
END-EXEC.
ns
Question - 184:
How do you establish a starting position in a browse operation?
w
Ans:
EXEC CICS STARTBR ---- END-EXEC.
er
Question - 185:
Mention the option used in the CICS READ command to gain accessibility directly to the file I/O area. (Assume COBOL-II).?
O
Ans:
SET(ADDRESS OF LINKAGE-AREA).
R
View All Answers
Question - 186:
G
Which option of the PCT entry is used to specify the PF key to be pressed for initiating a transaction?
Ans:
TASKREQ=PF1
View All Answers
Question - 187:
How do you terminate an already issued DELAY command?
Ans:
EXEC CICS CANCEL
REQID(id)
END-EXEC
View All Answers
Question - 188:
What is the CICS command used to access current date and time?
Ans:
ASKTIME.
In
Question - 189:
te
The transaction initiated should be in a position to retrieve information pertaining to which transaction has initiated it and from which terminal. (Code the required
CICS commands)
EXEC CICS START
INTERVAL(hhmmss)/TIME(hhmmss)
ie
TRANSID('TRAN')
TERMID('TRM1)
FROM(data-area)
w
LENGTH(data-value)
RTRANSID(EIBTRNID)
RTERMID(EIBTRMID)
END-EXEC
Q
RTRANSID(data-name)
RTERMID(data-name)
END-EXEC
st
View All Answers
Question - 190:
io
Mention the 5 fields available in the symbolic map for every NAMED field in the DFHMDI macro? Give a brief description of these fields (Not exceeding a line).?
Ans:
ns
FIELD+L - Return the length of text entered (or for dymanic cursor positioning)
FIELD+F - Return X(80) if data entered but erased.
FIELD+A - Used for attributes reading and setting
FIELD+I - Used for reading the text entered while receiving the map.
FIELD+O - Used for sending information on to the MAP.
A
Question - 191:
What are the commands used to gain exclusive control over a resource?
Ans:
w
Question - 192:
O
List the sequence of steps used to achieve Modiication in Skip Sequential Mode?
Ans:
R
List the sequence of steps used to achieve "Modiication in Skip Sequential Mode".
I. READNEXT command
G
Question - 193:
Kindly specify the PIC clause for the following:
Any BLL Cell, Data type of Length Option field, HHMMSS type of data fields?
Ans:
Any BLL Cell -S9(8) COMP
Data type of length Option field - S9(4) COMP
HHMMSS type of data fields - S9(7) COMP 3
View All Answers
Question - 194:
What is CICS?
Ans:
In
CICS (Customer Information Control System) is a transaction server that runs primarily on IBM mainframe systems under z/OS and z/VSE.
CICS is a transaction manager designed for rapid, high-volume online processing. This processing is mostly interactive (screen-oriented), but background transactions
are possible.
While CICS has its highest profile among financial institutions such as banks and insurance companies, over 90 percent of Fortune 500 companies are reported to rely
te
on CICS (running on z/OS) for their core business functions, beside many governments. CICS is used in bank-teller applications, ATM systems, industrial production
control systems, insurance applications and many other types of interactive application.
Recent CICS Transaction Server enhancements include support for Web services and Enterprise Java Beans (EJBs). IBM began shipping the latest release, CICS
rv
Follow us on FaceBook
www.facebook.com/InterviewQuestionsAnswers.Org
Follow us on Twitter
https://twitter.com/InterviewQA