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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how do you set the mdt option to on status, even if data is not entered?

608


Explain the difference between a return with transid and xctl? For example program. A is issuing return with transid to program b. Program a. Is isssuing xctl to program b?

613


Define transient data?

575


Explain how many conditions can you include in a single handle condition command?

617


Let us say you have a collection of multiple maps in cics. So if you are asked to determine the exact storage space that is available in a symbolicmap, then how will you compute it?

691






In a particular cics program, what is the procedure to allocate dynamic memory?

736


Can you explain enq and deq used in cics?

641


What are the cics commands associated with task control?

537


Explain how many exceptional condition can be given in a handle condition?

540


What is meant by PPT and what are its uses?

615


Explain how do you terminate an already issued delay command?

547


What will happen if some program tries to process a queue on which an ENQ command has been issued by some other program?

2072


Define an asra?

563


explain the means of supporting pseudo conversation programming. (Eg. Storing and restoring of states, control flow, error handling)?

622


cics command level is?

647