Syntax of AMS modal commands ?

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


Please Help Members By Posting Answers For Below Questions

What does the keyranges parameter in define cluster commends do?

500


What is a ci split?

550


In a KSDS file, key is missing for one record. How to insert the key for that particular record from back up file. Is there any sorting needed for the back up file before the key insertion?

986


What is the use of access method services in vsam?

591


explain in brief how you can create a vsam file?

656






What are the different commands used in idcams for vsam?

559


What is a lds (linear data set) and what is it used for?

519


What is the biggest disadvantage of using a vsam dataset?

604


Define base cluster?

566


What is the device independent method to indicate where a record is stored?

582


What is recovery parameters in define cluster command?

564


What are the different parameters that are used in vsam?

720


what are the codes returned by the ams (access method services) command during the execution in vsam?

765


What is the function of entry sequenced data set?

648


what is the probability of a complete system distortion under high end low performing multiprocessor job?

2025