CA Librarian

Expand all | Collapse all

CA Librarian usage

  • 1.  CA Librarian usage

    Posted 01-18-2018 11:17 AM

    Dear community members.

     

    I have started using Librarian recently and I have faced with a problem during member upload.
    I am working on zOS platform and I tried the following TSO command to add new member into my Master file.

     

    LIBADD DFH0STAT,TSODSN('SYSP.CICSTS53.SDFHSAMP(DFH0STAN)'),ARC,DSSOURCE('SYS2.SOURCE'),TERMMSG 

     

    The new source is contained in pds dataset member which I would like to add as newname DFH0STAT into SYS2.SOURCE master file.

     

    I have got the following error after the operation:
     -ADD DFH0ST53,ARC                                                              
     *** ERROR ***          USER RETURN CODE OF 16 INTERCEPTED - UPDATE TERMINATED  
                            LIBRAIEX PTK02 -PGMR KORTIN TILI- TAI LAITOSNUMERO EI OL
    E NUMEERINEN  HU28576                                                           
     MODULE NOT ADDED TO MASTER.                                                    
                                                                                    
     RUN NO. 16288  DATE=01/18/18  TIME=1733               SUMMARY OF ACTIVITY      
           SYS2.SOURCE               PAGE     1                                     
     -ADD FOR MODULE 'DFH0ST53' WAS UNSUCCESSFUL. MODULE WAS NOT ADDED.             
     COMMAND TERMINATED EITHER DUE TO ERROR OR BY REQUEST. 

     

    I think the other method to add new member is using Batch jobs.  I tried upload job once, but it failed as well.

     

    Can you please advice some useful tricks for adding members to master file?

    Thank you in advance.

     

    Regards, Akos Eros.



  • 2.  Re: CA Librarian usage

    Posted 01-18-2018 12:33 PM

    Hello Akos,

    Here is the batch job I use to add a new member to a Librarian Master file:

    (Note if the member already exists, you must use the ++UPDATE command)

     

     

    //*                                                               
    //*  ADDS A NEW MEMBER TO THE MASTER FILE                         
    //*                                                               
    //INDEX    EXEC PGM=AFOLIBR,PARM='NRJS,NJTA'                      
    //STEPLIB  DD  DISP=SHR,DSN=hlq.mlq.CALJLINK         
    //SYSPRINT DD  SYSOUT=*                                           
    //INDEX    DD  SYSOUT=*                                           
    //MASTER   DD  DISP=SHR,DSN=SYS2.SOURCE        
    //OSJOB    DD  DUMMY                                              
    //SYSIN    DD  *                                                  
    -ADD  DFH0STAT,ARC                                                
    -LANG ???                                                         
    -DESC optional description                                          
    -HST COMMENT: ADD NEW MEMBER DFH0STAT                            
    //         DD  DISP=SHR,DSN=SYSP.CICSTS53.SDFHSAMP(DFH0STAT)    
    //         DD  *                                                  
    -EMOD                                                             
    -END                                                              
    /*                                                                
    //                                                                

     

    The -DESC and -HST options are optional and used for documentation.

    Check with your Librarian users to see what your standards are.

     

    For more explanation of the ADD command and the Command Processing options see Batch Commands in the Librarian DocOps -

    https://docops.ca.com/ca-librarian/4-4/en/batch-commands

     

    If you have any problems executing the job, please open a CA Support case on CA Support Online.

     

    June



  • 3.  Re: CA Librarian usage

    Posted 01-19-2018 05:22 AM

    Hi June,

     

    Thank you for your help. I really appreciate it.

    Something is wrong with my environmental setup and the JOB you provided couldn't run well.

    I have got error messages, so I decided to open a CA case for this matter.

    I wish you a nice day.

     

    br, Akos