Processing ACF2 commands in batch to SYSPRINT dataset line number inserted in column 1
search cancel

Processing ACF2 commands in batch to SYSPRINT dataset line number inserted in column 1

book

Article ID: 234626

calendar_today

Updated On:

Products

ACF2 - z/OS

Issue/Introduction

Trying to process a file of ACF2 commands (commands to insert or change a LID, or include a LID in a role), write the SYSPRINT to a file
and then read that SYSPRINT file in REXX and take some actions.
It looks like the line numbers from col 73 to 80 are now listed in front of each ACF2 command in the SYSPRINT output. 
How can the line numbers to suppressed from the output or changed to another column? 

 

Environment

Release : 16.0

Component :

Resolution

ACFBATCH output will insert line numbers before each command in the SYSPRINT output. 
The output from those commands will not contain line numbers.

00008028 SET LID                                                                
00009028 LIST USER001                                                           
USER001               USER001  DEMO Z/OSMF USER                  
                      COMPANY(S) DEPT() IDNUM(DAS9) LEVEL(1) LOCATION(ZZZZ) OLDL
                      PROJECT(12) SITE(2)                                       
 CANCEL/SUSPEND       TRACE                                                     
 PRIVILEGES           ACCOUNT CICS CMD-PROP DUMPAUTH JOB MOONSHOT MUSASS NON-CNC
 ACCESS               ACC-CNT(70) ACC-DATE(10/28/22) ACC-SRCE(STCINRDR) ACC-TIME
 PASSWORD             KERB-VIO(0) KERBCURV() PSWA1TOD(06/15/22-11:39) PSWA2TOD(0
                      PSWD-SRC(STCINRDR) PSWD-TIM(07:31) PSWD-TOD(06/15/22-11:39
                      PWP-VIO(0)                                                
 TSO                  ACCTPRIV ATTR2(9999) CONSOLE DFT-PFX(USER001) DFT-SOUT(A) 
                      LINE(ATTN) MAIL MODE MOUNT MSGID NOTICES OPERATOR PROMPT T
                      TSORBA(00006A) TSORGN(2,147,483,647) TSOSIZE(2,147,483,647
 STATISTICS           CRE-TOD(06/15/22-11:38) SEC-VIO(0) UPD-TOD(10/28/22-12:35)
 CICS                 CICSCL(999999) CICSRSL(999999)                            
 MUSASS               MUSUPDT                                                   
 RESTRICTIONS         GROUP(CHORGRP) PREFIX(USER001)                            

There is no option to suppress or specify another column for the line numbers.
However, to avoid the line numbers that appear in the SYSPRINT output from ACFBATCH you
can use batch TSO IKJEFT01 in place of ACFBATCH. For example:

//TSOACFB EXEC  PGM=IKJEFT01,REGION=1024K                    
//SYSPRINT DD   SYSOUT=*                                     
//SYSTSPRT DD DISP=(,CATLG,DELETE),DSN=USER002.ACFBATCH.FILE,
//  SPACE=(CYL,(50,10)),UNIT=SYSDA,                          
//  DCB=(RECFM=FBA,LRECL=133,BLKSIZE=1330)                   
//SYSPROC DD DISP=SHR,DSN=SYS6.CLIST                         
//SYSTERM   DD SYSOUT=*                                      
//SYSOUT    DD SYSOUT=*                                      
//SYSTSIN   DD *                                             
ACF                                                          
SET LID                                                      
LIST USRTEST                                                 
/*