SARSAM4

SARSAM4 is a demonstration program that describes how to use the
View
Database Access Method (SARSAM) to retrieve information from the database. This sample can list the Tape Control Record information. Optionally, it can display a specific tape or a range of tapes.
view
SARSAM4 is a demonstration program that describes how to use the
View
Database Access Method (SARSAM) to retrieve information from the database. This sample can list the Tape Control Record information. Optionally, it can display a specific tape or a range of tapes.
The following job control statements are required to execute SARSAM4.
  • JOB
    Initiates the job.
  • EXEC
    Specifies the program name (PGM=SARSAM4) and the high-level name of the product database. The PARM parameter can also specify a specific TAPE or range (PARM='VIEW.SYSTEM1,nnn|nnn-nnn').
  • STEPLIB DD
    Defines the load library containing SARSAM4. If the program resides in a link list library, omit this statement.
  • SYSPRINT DD
    Defines the sequential output data set (typically SYSOUT) used for listing the control statements, messages, and SYSOUTs on requested tapes. If you are not defining a SYSOUT data set, code DCB=BLKSIZE=
    nnn
    , where 
    nnn
     is a multiple of 133.
JCL Requirements:
Use the following statements:
//STEP1 EXEC PGM=SARSAM4,PARM='db_hlq,nnn|nnn-nnn' //STEPLIB DD DSN=CAI.CVDELOAD,DISP=SHR //SYSPRINT DD SYSOUT=* /* PARM='db_hlq,nnn|nnn-nnn'
where:
  • db_hlq
    Defines the high-level name of the product database.
  • nnn
    Specifies a single tape sequence number that is used to find Tape Control Record information on the database.
    Default is the tape sequence range 1-9999.
  • nnn-nnn
    Specifies a range of tape sequence numbers that are used to find Tape Control Records on the database.
Sample Assembly and Linkage Editor JCL:
//ASM1 EXEC PGM=ASMA90,PARM=('NODECK,OBJECT') //SYSPRINT DD SYSOUT=* //SYSUT1 DD UNIT=SYSDA,SPACE=(TRK,(5,5)) //SYSUT2 DD UNIT=SYSDA,SPACE=(TRK,(5,5)) //SYSUT3 DD UNIT=SYSDA,SPACE=(TRK,(5,5)) //SYSLIN DD DSN=&&OBJ,DISP=(,PASS),SPACE=(CYL,(1,1)),UNIT=SYSDA //SYSLIB DD DISP=SHR,DSN=SYS1.MACLIB // DD DISP=SHR,DSN=...................CVDEMAC //SYSIN DD *
Insert source here
/* //LKED EXEC PGM=IEWL,PARM='XREF,LIST,NCAL' //SYSLMOD DD DISP=SHR,DSN=....................CVDELOAD //SYSPRINT DD SYSOUT=* //CVDELOAD DD DISP=SHR,DSN=....................CVDELOAD //SYSUT1 DD UNIT=SYSDA,SPACE=(CYL,(2,1)) //SYSLIN DD DSN=&&OBJ,DISP=(OLD,DELETE) // DD * INCLUDE CVDELOAD(SARSAM) ENTRY SARSAM4 NAME SARSAM4(R) /*