|
|
Every AMS command issues a condition code. If multiple commands are being executed successively, there might be a requirement to execute or bypass certain commands based on the success or failure of a previous command. This is accomplished by testing a condition code through the modal commands of AMS. he normal condition codes returned by AMS commands are:
LASTCC contains the condition code of the last command executed, while MAXCC is used to test the highest condition code from any of the previous command executions within the same job step.
The relational operators for comparing LASTCC and MAXCC using IF-THEN-ELSE statements are EQ, NE, GT, LT, GE, LE etc. For example you could say,
IF LASTCC NE 0 THEN » DELETE CUSTOMER.KSDS.CLUSTER
The SET command is used to reset a previously set value of LASTCC or MAXCC. By setting LASTCC or MAXCC to 16, processing can be terminated. For example,
VERIFY DS (CUSTOMER.KSDS.CLUSTER)
IF LASTCC=0
THEN
ELSE
SET MAXCC=16
Additional Features of VSAM
There are a few features of VSAM that are not available in batch COBOL worth knowing like
|
|
IBM Mainframe Related Tutorials |
|
---|---|
IBM Lotus Notes Tutorial | IBM-CICS Tutorial |
COBOL Tutorial | Linux Tutorial |
IBM-JCL Tutorial |
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.