Syntax of AMS modal commands ?
Answer / 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 |
What is the meaning of each of the values in SHAREOPTS(2 ?
Name some common VSAM error conditions and codes. ?
How to get the last record in vsam file in cluster?
if you wish to use the rewrite command how must the vsam file be opened?
what is the meaning of dynamic processing in vsam?
How is record management performed in vsam?
what is the difference b/w sequential and ESDS
What are the three levels of definition for the VSAM DEFINE?
how do you create an alternate index ?
What is a vsam dataset?
What is the base cluster?
What is control interval?