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 does a file status of 02 on a vsam signifies?
How does control intervals and control areas related to each other?
how do you create an alternate index ?
how can you copy to a vsam cluster?
what parameter in the define aix option is used to determine the maximum number of duplicate keys allowable ?
is it necessary that all versions of the gdg have to be of the same record length?
Under idcams, multiple functions can be executed, each of which returns a condition code. What will be the condition code returned to the operating system?
What is the biggest disadvantage of using a vsam dataset?
what will happen if there is no secondary allocation made for datasets?
What are the different commands used in idcams for vsam?
to use the rewrite command, how should the vsam file be opened?
What is a vsam dataset?
Explain about the file objects in vsam?
Explain the purpose of the file status clause in the select statement?
How do you calculate record size of an alternate cluster?