IBM Support

PI55604: RATIONAL DEVELOPER FOR SYSTEM Z (RDZ) SOFTWARE ANALYSIS IN ZOS BATCH WITH EXTMAP FAILS FOR PDS WITH MIXED LANGUAGE TYPES

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Rational Developer for System z - RDz
    
    When you use EXTMAP DD to point to a zOS system mapping to run
    software analysis for a PDS that contains mixed languages,
    then only the first language is correctly analyzed.
    
    For instance, following the steps below will cause this issue:
    
    1. Create a source PDS called RDZTEST.PDS.SRC that contains cbl
    members that start with C and pli members that start with P
    
    2.  In the zOS File System Mapping view, right click to "Add
    Data Set Mapping".  Enter RDZTEST.PDS.SRC as Mapping criterion
    
    3.  Right click on RDZTEST.PDS.SRC and "Add Member mapping with
    C* as Mapping criterion and workstation file extension of cbl
    
    4.  Right click on RDZTEST.PDS.SRC and "Add Member Mapping" for
    P* as Mapping criterion and workstation file extension of pli
    
    5.  Create New filter for RDZTEST.PDS.* in MVS files
    
    6.  Now, when you look at the PDS RDZTEST.PDS.SRC the
    C* Members should have an extension of cbl and the
    P* members should have an extension of pli
    
    7.  Export the zOS File System Mapping by:
    a.  Clicking in the upper right hand corner of the zOS File
    System Mapping view on the
    inverted equalateral triangle
    b.  selecting Export Mappings
    c.  saving as MyRDzmappings.zip to a local drive
    
    8.  FTP, in binary, MyRDzmappings.zip file to a zOS USS drive,
    such as /u/rdzuser/RDzBin/MyRDzmappings.zip
    
    9.  FTP in binary the associated property group, such as
    PLIandCOBbin.xml to the same zOS USS drive
    
    10.  FTP in binary the exported Software Analyzer Rules, such as
    PLIandCOBRulesbin.xml to the same zOS USS drive.
    
    
    When you submit a batch software analysis job for this PDS you
    may get the following results:
    
    !ENTRY com.ibm.rsaz.analysis.core
    !MESSAGE CRRZV0001E An error occurred during the parsing of the
    COBOL source file /SYSTEM/tmp/20151216.CTFMVS08/workspace/
    RDZTEST.PDS.SRC/P12345.cbl. Error message: Syntax error
    
    1: "CBL"
    1: "ERROR_TOKEN"
    1: "ERROR_TOKEN"
    2: "ERROR_TOKEN"
    5: "CICS"
    
    JCL used for batch with EXTMAP:
    //RDZTEST1 JOB ,
    // MSGCLASS=H,MSGLEVEL=(1,1),COND=(16,LT)
    //PROCS JCLLIB ORDER=(CSPSHR.V91@1.PROCLIB)
    //*
    //AKGCREV  EXEC PROC=AKGCR
    //RULES    DD PATH='/u/rdzuser/RDzBin/PLIandCOBRulesbin.dat'
    //PDS      DD DISP=SHR,DSN=RDZTEST.PDS.SRC
    //PROPERTY DD PATH='/u/rdzuser/RDzBin/PLICOBbin.xml'
    //EXTMAP   DD PATH='/u/rdzuser/RDzBin/MyRDzmappings.zip'
    //CSV      DD SYSOUT=*,RECFM=VB,LRECL=2051
    //XML      DD SYSOUT=*,RECFM=VB,LRECL=2051
    //MSGS     DD SYSOUT=*,RECFM=VB,LRECL=2051
    //CUSTRULE DD DUMMY
    //*
    

Local fix

  • Use the LIST (L) parameter instead of using the EXTMAP DD.
    
    JCL used for LIST:
    //RDZTEST1 JOB ,
    // MSGCLASS=H,MSGLEVEL=(1,1),COND=(16,LT)
    //PROCS JCLLIB ORDER=(CSPSHR.V91@1.PROCLIB)
    //*
    //AKGCREV  EXEC PROC=AKGCR
    //RULES    DD PATH='/u/rdzuser/RDzBin/PLIandCOBRulesbin.dat'
    //PDS      DD DISP=SHR,DSN=RDZTEST.PDS.SRC
    //PROPERTY DD PATH='/u/rdzuser/RDzBin/PLICOBbin.xml
    //CSV      DD SYSOUT=*,RECFM=VB,LRECL=2051
    //XML      DD SYSOUT=*,RECFM=VB,LRECL=2051
    //MSGS     DD SYSOUT=*,RECFM=VB,LRECL=2051
    //CUSTRULE DD DUMMY
    //LIST     DD  *
      L=COBOL D=RDZTEST.PDS.SRC M=C*
      L=PLI D=RDZTEST.PDS.SRC M=P*
    //*
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: 01.Users of code review application for      *
    *                    z/OS.                                     *
    *                 02.Users of code review application for      *
    *                    z/OS.                                     *
    *                 03.Users of code review application for      *
    *                    z/OS.                                     *
    ****************************************************************
    * PROBLEM DESCRIPTION: 01.Batch software analysis had a        *
    *                         defect in which extension mapping    *
    *                         was not working on members.          *
    *                      02.COBOL Code Review rule "Specify 0    *
    *                         RECORDS for BLOCK CONTAINS clause"   *
    *                         incorrectly flags certain BLOCK      *
    *                         CONTAINS clauses.                    *
    *                      03.Attempts to run Software Analyzer    *
    *                         to check SQLCode rule may give       *
    *                         incorrect results.                   *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    01.Batch software analysis had a defect in which extension
       mapping was not working on members.
    02.COBOL Code Review rule "Specify 0 RECORDS for BLOCK CONTAINS
       clause" incorrectly flags certain BLOCK CONTAINS clauses.
    03.Attempts to run Software Analyzer to check SQLCode rule may
       give incorrect results.
    

Problem conclusion

  • 01.Modified batch software analysis to correctly handle
       extension mapping on members.
    02.Modified code for code rule to correctly identify rule
       violations.
    03.Modified rule code to ensure correct results.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI55604

  • Reported component name

    RATL DEV FOR SY

  • Reported component ID

    5724T0700

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-01-18

  • Closed date

    2016-09-29

  • Last modified date

    2016-10-01

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    UI41257

Modules/Macros

  • AKGCCINI AKGFT005 AKGXCC01
    

Fix information

  • Fixed component name

    RD/Z UTILITIES

  • Fixed component ID

    5724T0733

Applicable component levels

  • R910 PSY UI41257

       UP16/10/01 I 1000

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.



Document information

More support for: Rational Developer for System z

Software version: 910

Reference #: PI55604

Modified date: 01 October 2016