Implementing sample JCL from HOLDDATA for PTF RO50594 produces errors.

Document ID : KB000020997
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

The syntax of the ADDSPACE command is incorrect in the HOLDDATA in PTF RO50594. The sample JCL to run EZYEDIT in batch, using this ADDSPACE command may produce errors such as :

  1. EZYM104D Parameter TRK(nnn) or CYL(nnn) -or-
  2. A JCL error will be flagged, when run on a JES3 system.

Solution:

//* Sample JCL to add space and directory blocks      
//* to specific product data sets                     
//*                                                   
//* Tailoring : change 'prodhlq' string to match your 
//*             HLQ for CA PDSMAN SMP/E data sets     
//*                                                   
//* add space to data set(s)                          
//ADDSPACE EXEC PGM=PDSEASY                           
//SYSPRINT  DD SYSOUT=*                               
//SYSIN     DD *                                      
  ERROR NOFLUSH                                       
  MSGID ON                                            
  DSL   prodhlq.CPDSLINK                              
  I     prodhlq.APDSMOD                               
  HC MAX                                              
  ADDSPACE *.CPDSLINK  * CYLS(7)                      
  ADDSPACE *.APDSMOD   * CYLS(6)                      
  HC MAX                                              
  END                                                 
/*                                                    
//* add directory blocks                              
//ALTERDIR EXEC PGM=IEBCOPY                           
//SYSPRINT  DD SYSOUT=*                               
//CPDSLINK  DD DISP=SHR,DSN=prodhlq.CPDSLINK          
//APDSMOD   DD DISP=SHR,DSN=prodhlq.APDSMOD           
//APDSMOD   DD DISP=SHR,DSN=prodhlq.APDSMOD           
//SYSIN     DD *                                      
  ALTERDIR O=CPDSLINK,BLOCKS=100                      
  ALTERDIR O=APDSMOD,BLOCKS=100                       
//* 

There are two problems with the sample JCL:

  1. The ADDSPACE syntax in the sample JCL is incorrect:

    'CYLS(' should be 'CYL('

    The SYSIN ADDSPACE syntax SHOULD look like this :

    ADDSPACE *.CPDSLINK * CYL(7)
    ADDSPACE *.APDSMOD * CYL(6)

    If the JCL is executed without the suggested change, the expected error message may look like this:

    EZYM104D Parameter TRK(nnn) or CYL(nnn) ....


  2. Remove the duplicate //APDSMOD DD statement, in second step (ALTERDIR).

NOTE: This problem only affects sites that DO NOT use CA CSM to install and maintain PDSMAN.