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 main function of key-sequenced data set?
What makes vrrds different from vsam?
How to get the last record in vsam file in cluster?
what do you mean by define model parameter?
what are s0c1, s0c4, s0c5, s0c7 abends?
What is a base cluste?
write a program to read from a VSAM file , there will be a 5 records to create name. empno. resignation and address to update in a db2 table and call another program using dynamic call to find the matching fields in program 1 to update in db2 table. anybody pls send de program for dis ? thanks in advance...
Explain the device independent method to indicate where a record is stored?
Yes. Because the alternate key would first locate the primary key, which in turn locates the actual record. Needs twice the number of I/Os.
explain how can you initialize a vsam file before any operation?
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?
How to get the last record in vsam file in cluster? And how can u get the ksds file records into cobol program?
explain in brief what are the 3 types of vsam files?
what is the meaning of each of the values in shareopts(2 3)?
What are the steps involved in access method services?