search cancel

How to display the current CA File Master CAWAOPTS settings

book

Article ID: 201335

calendar_today

Updated On:

Products

File Master Plus

Issue/Introduction

How can I display the current CA File Master Plus CAWAOPTS options?

Resolution


The current CA File Master Plus CAWAOPTS options can be displayed by using a CA File Master Custom Record Layout (CRL) and the data structure defined in a COBOL copybook.
The following can be used on your own risk.
The structure may change by an APAR, PTF or a new release/version of CA File Master.
The real, current structure can be seen when assembling the CAWAOPTS macro.

This is a COBOL copybook example which was tested with release 12.0 in October 2020:
...
      *** CAWAOPTC - OPTION RECORD - COBOL DEFINITION                
      ***                                                             
      *** NOTE: PLEASE KEEP IN SYNC WITH THE DSECT GENERATED BY      
      ***       'CAWAOPT' MACRO EXECUTION WITHIN 'CAWAOPTS' ASM MODULE
      ***                                                            
                                                                      
       01  OPT-INSTALL-EXEC-OPTIONS.                                 
           05  OPT-HEADER.                                           
               10  OPTS-HEADER-LENGTH           PIC 9(8) COMP.       
               10  OPTS-MOD-LEVEL               PIC X(13).           
               10  OPTS-RELEASE-NUMBER          PIC X(10).           
               10  OPTS-ASSEMBLY-DATE           PIC X(15).           
               10  OPTS-PRODUCT-NAME            PIC X(24).           
               10  OPTS-COPYRIGHT-NOTICE        PIC X(50).           
               10  FILLER01                     PIC X(12).           
               10  OPTS-ASSEMBER-VERSION        PIC X(27).           
               10  OPTS-LENGTH-OF-PARAMETERS    PIC 9(8) COMP.       
           05  OPT-RC-LAYOUT               PIC  9(09) COMP.          
           05  OPT-RC-COMPARE              PIC  9(09) COMP.          
           05  OPT-SYNCLIM                 PIC  9(09) COMP.          
           05  OPT-COMPDIFF                PIC  9(09) COMP.          
           05  OPT-CODE-PAGE               PIC  X(08).               
           05  OPT-PRINT-LINES-PER-PAGE    PIC  9(09) COMP.          
           05  OPT-CLOSE-INPUT-IND         PIC  X(01).               
           05  OPT-CLOSE-OUTPUT-IND        PIC  X(01).               
           05  OPT-DDNAME-INFILE           PIC  X(08).               
           05  OPT-DDNAME-OLDFILE          PIC  X(08).               
           05  OPT-DDNAME-NEWFILE          PIC  X(08).               
           05  OPT-RC-TRUNC                PIC  9(09) COMP.          
           05  OPT-RC-NO-RECS-SELECTED     PIC  9(09) COMP.          
           05  OPT-RC-EMPTY                PIC  9(09) COMP.          
           05  OPT-RDW-POS-1-IND           PIC  X(01).               
           05  OPT-DDNAME-LOADLIB          PIC  X(08).               
           05  FILLER01                    PIC  X(52).               
           05  OPT-ONL-CONFIRM-DSN-DEL-IND PIC  X(01).               
           05  OPT-ONL-CONFIRM-MEM-DEL-IND PIC  X(01).               
           05  OPT-ONL-FM-JUMP-W-EQ-IND    PIC  X(01).               
           05  OPT-ONL-CONFIRM-PRINT-PARMS PIC  X(01).               
           05  OPT-DEFAULT-SYSOUT-CLASS    PIC  X(01).               
           05  OPT-DEFAULT-SYSOUT-COPIES   PIC  X(03).               
           05  OPT-SEL-CRITERIA-PARM-DSN   PIC  X(44).    
           05  OPT-REFORMAT-PARM-DSN       PIC  X(44).    
           05  OPT-DSNLIST-PARM-DSN        PIC  X(44).    
           05  OPT-LAYOUT-DSN              PIC  X(44).    
           05  OPT-DASD-UNIT               PIC  X(08).    
           05  OPT-STORAGE-CLASS           PIC  X(08).    
           05  OPT-MAX-CYL                 PIC S9(09) COMP.
           05  OPT-ONL-CLOG-SPACE-PRI      PIC S9(09) COMP.
           05  OPT-ONL-CLOG-SPACE-SEC      PIC S9(09) COMP.
           05  OPT-ONL-CLOG-FORCE-IND      PIC  X(01).    
           05  OPT-ONL-CLOG-DSN            PIC  X(44).    
           05  OPT-IO-EXIT                 PIC  X(01).    
           05  OPT-DSN-ALAY                PIC  X(01).    
           05  FILLER03                    PIC  X(05).    
...
This is the CRL example:
...
*** CA File Master Plus             12.0.0   Custom Record Layout
"CA File Master Plus Options"                                   
* 12.0                                                          
  IF=()                                                          
    LAYOUTFILE=your.layout.dsn(CAWAOPTC)                      
    LAYOUTREC=OPT-INSTALL-EXEC-OPTIONS                          
    LAYOUTOFF=496                                                
    SKIPFLD=FILLER01                                             
    SKIPFLD=FILLER02                                            
    SKIPFLD=FILLER03                                            
    DEFAULT                                                     
...
Change the layout DSN and the member name - which contains the COBOL copybook.
The layout offset can be different. It could be 480 or something else. Usually it starts after IEWP:
...
************
IEWP...┬║MOD=
************
...
How to browse the CAWAOPTS module:

--------------------  CA File Master Plus -- Browse Dataset -------------------
COMMAND ===>                                                                 
                                                                              
Specify Dataset to Browse:                                                    
  Dataset name   ===> 'your.FMMVS12.CDBILOAD'                                 
  Member name    ===> CAWAOPTS                                                
  Volume         ===>                  If dataset not cataloged               
                                                                              
Record Layout for Formatted Displays:                                         
  Layout dataset ===> 'your.layout.dsn'                                     
  Layout member  ===> CAWAOPTL                                                
                                                                              
Selection Criteria below or Sel. Criteria Member ===>          Scan gens ===> N
===>                                                                          
===>                                                                          
===>                                                                           
                                                                              
Display mode  ===> S ( C Character S Single-rec Format M Multi-rec Format )   
Browse  mode  ===> B ( V View B Browse )                                       
...

Result (an extract):


...


Attachments