IN CICS APPLICATION PROGRAM, INSTEAD OF HARDCODING MAP AND
MPASET NAMES WHILE SENDING AND REIEVING ...CAN WE DO LIKE
THIS ???
MOVE MAP AND MAPSET NAMES TO WORKING STORAGE SECTION
VARIABLES AND USE THOSE VARIABLES WHILE SENDING AND
RECIEVING MAP.IF YES, HOW CAN WE MOVE MAP INPUT , OUTPUT
VARIABLES.
IF ANYBODY KNOWS THIS PLEASE POST THE ANSWER

Answers were Sorted based on User's Feedback



IN CICS APPLICATION PROGRAM, INSTEAD OF HARDCODING MAP AND MPASET NAMES WHILE SENDING AND REIEVING..

Answer / rogerio coelho

You have more than one map in your program?
That`s not a very good practice, but you can do this:

01 WS-MAP-AREA PIC X(6000).
01 WS-MAP-NAME PIC X(7).

COPY MAP001.
COPY MAO002.

PROCEDURE DIVISON.

<MOVE DATA TO MAP FIELDS>

MOVE MAP001O TO WS-MAP-AREA.
MOVE MAP001 TO WS-MAP-NAME.

EXEC CICS SEND MAP(WS-MAP-NAME)
FROM(WS-MAP-AREA)
END-EXEC.


EXEC CICS RECEIVE(WS-MAPNAME)
INTO(WS-MAP-AREA)
END-EXEC.

MOVE WS-MAP-AREA TO MAP001I.

Is This Answer Correct ?    7 Yes 1 No

IN CICS APPLICATION PROGRAM, INSTEAD OF HARDCODING MAP AND MPASET NAMES WHILE SENDING AND REIEVING..

Answer / jaga

We can redefine the Input – Output variable of map inside
the working storage.
Move the data to redefined variable in working storage so
that CICS map can accessed between Send and receive.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More CICS Interview Questions

how do you execute a background cics txn ?

0 Answers   IBM,


In the CICS command level all the re-entrancy issues are handled by the System(True or False).

1 Answers  


What is meant by a CICS task?

4 Answers  


What is the procedure to solve an ASRA ABEND?

0 Answers  


List the sequence of steps used to achieve ?Modification in Skip Sequential Mode.?

1 Answers  






Explain the difference between link xctl?

0 Answers  


Every map is categorized into multiple fields, and there are three common working storage fields present for each of these respective fields. Mention those?

0 Answers  


WHEN I TRIGGER A TRANSACTION (COBOL-CICS-DB2 PROGRAM)WHAT IS THE EXECUTION? (I MEAN THE PURPOSE OF CICS-CONTROL TABLES &CONTROL PROGRAMS)

1 Answers  


Tsqs can be written in the main storage or auxiliary storage? State true or false

1 Answers  


Explain the primary function of the processing program table (ppt)?

0 Answers  


What does the 'ceci:cics' transactions do?

0 Answers  


what is the use of tsq and tdq....at what situation we need to use this...pls tell me....

2 Answers   Kanbay,


Categories