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

649


what is the use of the file status clause in the select statement in vsam?

572


What is the biggest disadvantage of using a vsam dataset?

610


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

578


Explain about the file objects in vsam?

613






how do you create an alternate index ?

588


How does control intervals and control areas related to each other?

558


Explain the purpose of the file status clause in the select statement?

526


if you wish to use the rewrite command how must the vsam file be opened?

684


Discuss record management in vsam?

551


Explain the process in which flat files are converted into vsam files?

561


what do you mean by the cobol record key clause in vsam?

605


How do you calculate record size of an alternate cluster?

673


What is a ca split?

604


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

669