Interview Questions   Tutorials   Discussions   Programs   Discussion   

VSAM - Write the Syntax of AMS modal commands ?

asked mar August 7, 2014 12:18 PM  

Write the Syntax of AMS modal commands ?


1 Answers

answered By Mswami   0  

Note: these can be used only under IDCAMS and not from the TSO prompt.

IF LASTCC(or MAXCC) >(or <,= etc..) value -


DO -

command set (such as DELETE, DEFINE etc..)


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 previous 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.


   add comment

Your answer

Join with account you already have



 Write A Tutorials
Online-Classroom Classes

  1 person following this question

  Question tags

vsam × 1

Asked 1 year and 1 month ago ago
Number of Views -176
Number of Answers -1
Last updated
2 years and 2 months ago ago

Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!