Modify this DD processing subroutine to increment the DD statement counter. If the DD statement UNIT parameter is CART (cartridge), have the cart count statement increment the count by 1 to keep track of the number of cartridges used per step.
/********************************************************************/
/* Data Definition Processing Subroutine */
/********************************************************************/
DD_PROCESSING:
dd_count = (dd_count + 1)
If (DD.UNIT = 'CART') then
Do
cart_count = (cart_count + 1)
End
If (DD.UNIT = 'BOGUS') then
Do
Call $CAJCL_ERROR,
'I','Unit name coded 'dd.unit' is no longer valid and will be removed'
DD.UNIT = '' /* remove unit name from JCL */
End
If (DD.DDNAME = 'OBSOLETE') then
Do
delete_flag = 'Y' /* delete this statement */
Call $CAJCL_ERROR,
'W','DD named 'dd.ddname' was coded and is no longer required, this statement
will be deleted'
End
If (DD.DDNAME = 'COMMENT') then
Do
comment_flag = 'Y' /* delete this statement */
Call $CAJCL_ERROR,
'I','DD named 'dd.ddname' will be commented out, it is no longer valid'
End
Return
|
Copyright © 2013 CA.
All rights reserved.
|
|