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
Explain how would you resolve an asra abend?
Explain processing program table(ppt)?
What is the meaning of the enq command?
Can you explain common systems area?
What is the meaning of the deq command?
What are the types of the dfhmdf present in the cics?
How many ways are there for initiating a transaction?
Explain the difference between start and xctl?
Can you explain communication area?
What is task control?
Give the definition of COMMAREA ?
explain the means of supporting pseudo conversation programming. (Eg. Storing and restoring of states, control flow, error handling)?
What are the ways fot initiating a transaction?
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?
Can dynamic calls be used in CICS?