Answer Posted / guest
Note: these can be used only under IDCAMS and not from the
TSO prompt.
IF LASTCC(or MAXCC) >(or <,= etc..) value -
THEN -
DO -
command set (such as DELETE, DEFINE etc..)
ELSE -
DO -
command set
LASTCC - Condition code from the last function (such as
delete) executed
MAXCC - Max condition code that was returned by any of the
prev 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.
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is the biggest disadvantage of using a vsam dataset?
What is a vsam dataset?
in a cobol select statement, can you tell what is the organization for a ksds?
Is it slower if you access a record through alt index as compared to primary index?
is it required that primary key values have to be unique? Do alternate key values have to be unique?
How to get the last record in vsam file in cluster? And how can u get the ksds file records into cobol program?
Would you specify freespace ce for an esds?
What are the steps involved in access method services?
Why is it required to have a keyed directed retrieval?
What are the common vsam error conditions and codes?
what do you mean by the cobol record key clause in vsam?
explain in brief why do vsam take more disk space than other utilities?
what is meant by s0c-07 system abend codes?
what do you mean by a vsam slot?
Explain the difference between lds and esds?