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 is control area?

0 Answers  


How did you refresh a VSAM file and how frequently you do it ?

3 Answers   CSC, IBM, Patni, Xansa,


If we are using empty VSAM file, we can see this empty file by using FILE AID tool. How can we open empty VSAM file if you are using in Program..?

3 Answers  


there are seven idcams commands in vsam. Can you name and explain each of them?

0 Answers   IBM,


What is a cluster?

2 Answers  






What is the VSAM-code field?

1 Answers  


Do primary key values have to be unique? Do alternate key values have to be unique?

1 Answers  


explain how can you initialize a vsam file before any operation?

0 Answers   IBM,


Using alternate indexes in cics program?

0 Answers  


to use the rewrite command, how should the vsam file be opened?

0 Answers   IBM,


in vsam at the creation of cluster what is the use of RECSZ parameter?

2 Answers   TCS,


There are at least seven IDCAMS commands; name and explain each of them ?.

1 Answers  


Categories