How to Compile an ACF2 rule with a rule line longer than 72 characters
search cancel

How to Compile an ACF2 rule with a rule line longer than 72 characters

book

Article ID: 232776

calendar_today

Updated On:

Products

ACF2 - z/OS

Issue/Introduction

An ACF2 rule that needs to be compiled has a line that is longer than 72 characters.
How can this be compiled? 

Environment

Release : 16.0

Component : ACF2 for z/OS

Cause

Here is a sample access rule..

$KEY(SYS1)
PROCLIB UID(******************USER01) R(A) W(A) A(A) E(A) DATA(THIS IS A LONG RULE LINE)
PARMLIB UID(*) R(A) DATA(THIS IS A SHORT RULE LINE)

Resolution

The rule lines would need to be compiled as follows..
$KEY(SYS1)
 PROCLIB UID(******************USER01) R(A) W(A) -
 A(A) E(A) DATA(THIS IS A LONG RULE LINE)
 PARMLIB UID(*) R(A) DATA(THIS IS A SHORT RULE LINE)

The CA ACF2 documentation for compiling rules states

The COMPILE subcommand lets you enter the control statements and rule entries at the terminal. Some general guidelines are:

Type the $KEY control statement first. Press ENTER.
Type each control statement on a separate line beginning in column two. Press ENTER.
Type each rule entry on a separate line, one line at a time. Press ENTER.
Press ENTER when you reach the end of the entry.
If a rule entry is too long (that is, more than 72 characters), type a dash to indicate that the entry continues on the next line before you press ENTER. If you use the dash (-) masking character at the end of the data set name and no parameters appear on that rule line, 
ACF2
 interprets the dash as a continuation character. Be sure to include at least one parameter, such as a UID specification, in this situation.