Page 1 of 1

send map command

PostPosted: Tue Jul 10, 2012 2:58 pm
by kandrepavan
Hi All,

In cics send map command i am making use of resp option to handle the errors.

so, if mapset name or mapname specified is wrong or incorrect in send map command, which is not defined the ppt/pct.

What condition name should be given in evaluate conditionnal statement.

ie,....
EVALUATE TRUE

WHEN WS-RESP = DFHRESP(NORMAL)
PERFORM 2010-RECEIVE-PARA
THRU 2010-RECEIVE-PARA-EXIT

WS-RESP = DFHRESP( ? )
MOVE 'mapsetname/ mapname error' TO WS-ERROR-MSG
EXEC CICS
SEND TEXT
FROM(WS-ERROR-MSG)
END-EXEC .

Thanx and regards.

Re: send map command

PostPosted: Tue Jul 10, 2012 3:40 pm
by Monitor
The error you describe is a programming error, and there is no reason to handle this kind of response.
The normal action from CICS is to abend the task. Different abendcodes for invalid mapsetname, APCT, and invalid mapname, ABM0.
Those abendcodes tells you perfectly well what is wrong.
What did you find when you tested ?
Pls tell us why you want to handle this!

Re: send map command

PostPosted: Tue Jul 10, 2012 4:14 pm
by Monitor
I just tested and found that CICS doesn´t return a condition for this type of severe error, the abend takes precedence, which sounds perfekt to me.