Syntax of AMS modal commands ?



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

Post New Answer

More VSAM Interview Questions

What are the information stored in ci?

0 Answers  


is it required that primary key values have to be unique? Do alternate key values have to be unique?

0 Answers   IBM,


What is the biggest disadvantage of using a vsam dataset?

0 Answers  


What is IDCAMS ?

2 Answers  


what how do you initialize a vsam file before any operation? A vsam with alternate index?

0 Answers   IBM,






What is the function of entry sequenced data set?

0 Answers  


What is File Status in VSAM?

1 Answers   IBM,


How to insert values for variables that are declared as COMP-3 variables in COBOL program in an already created VSAM file.

3 Answers  


Explain about the file objects in vsam?

0 Answers  


What is the main purpose of having user catalog in vsam?

0 Answers  


In a file(PS), we dont know how many records are there. requirement is divide half n half the records n insert into 2 another files(PS).

6 Answers   Cap Gemini, TCS,


Why is master catalog used in vsam?

0 Answers  


Categories