Using CA Roscoe LIBSERVE Scan, Edit, List and Purge

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

Introduction: 

Using CA Roscoe LIBSERVE Scan, Edit, List and Purge

Instructions:

Customize the JCL with the name and numbers of ROSLIBS.

Global scan of ROSLIBS

LIBSERVE is used to perform a global scan for up to 100 specified strings.   

//LIBSERVE EXEC PGM=LIBSERVE,PARM='ROSCOE.CONTROL'
//STEPLIB  DD  DSN=CAI.RO60LIB,DISP=SHR
//ROSLIB00 DD  DSN=CAI.ROSLIB00,DISP=SHR
//ROSLIB01 DD  DSN=CAI.ROSLIB01,DISP=SHR
//ROSLIB02 DD  DSN=CAI.ROSLIB02,DISP=SHR
//SYSPRINT DD  SYSOUT=*
//SYSIN    DD  *
 SCAN ALL,KEY=$ALL 'string'
/*

Batch edit of ROSLIBS

LIBSERVE is used to perform a batch edit of the ROSLIBS. The search can be restricted to a specific key or to a specific member. All Advantage CA-Roscoe systems must be inactive before submitting this job.

//LIBSERVE EXEC PGM=LIBSERVE,PARM='ROSCOE.CONTROL'
//STEPLIB  DD  DSN=CAI.RO60LIB,DISP=SHR
//ROSLIB00 DD  DSN=CAI.ROSLIB00,DISP=SHR
//ROSLIB01 DD  DSN=CAI.ROSLIB01,DISP=SHR
//ROSLIB02 DD  DSN=CAI.ROSLIB02,DISP=SHR
//SYSPRINT DD  SYSOUT=*
//SYSIN    DD  *
 EDIT ALL,KEY=userid 'string'replace'
/*

List all members of a key

LIBSERVE is used to list all members of a key.

//LIBSERVE EXEC PGM=LIBSERVE,PARM='ROSCOE.CONTROL'
//STEPLIB  DD  DSN=CAI.RO60LIB,DISP=SHR
//ROSLIB00 DD  DSN=CAI.ROSLIB00,DISP=SHR
//ROSLIB01 DD  DSN=CAI.ROSLIB01,DISP=SHR
//ROSLIB02 DD  DSN=CAI.ROSLIB02,DISP=SHR
//SYSPRINT DD  SYSOUT=*
//SYSIN    DD  *
 LIST ALL,LINES=ALL,KEY=userid
/*

Delete SAVAWS & ZZZZZ members

LIBSERVE, PARM=PURGE is used to delete the SAVAWS and ZZZZZ members. All Roscoe systems must be inactive before submitting this job.

//LIBSERVE EXEC PGM=LIBSERVE,PARM='ROSCOE.CONTROL,PURGE'
//STEPLIB  DD  DSN=CAI.RO60LIB,DISP=SHR
//ROSLIB00 DD  DSN=CAI.ROSLIB00,DISP=SHR
//ROSLIB01 DD  DSN=CAI.ROSLIB01,DISP=SHR
//ROSLIB02 DD  DSN=CAI.ROSLIB02,DISP=SHR
//SYSPRINT DD  SYSOUT=*
/*