Note: these can be used only under IDCAMS and not from the TSO prompt.
IF LASTCC(or MAXCC) >(or <,= etc..) value -
command set (such as DELETE, DEFINE etc..)
LASTCC - Condition code from the last function (such as delete) executed
MAXCC - Max condition code that was returned by any of the previous functions
SET is also a valid AMS command. SET LASTCC (or MAXCC) = value
The maximum condition code is 16. A cond code of 4 indicates a warning. A cond code of 8 is usually encountered on a DELETE of a dataset that is not present.
Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!