SARSAM5

SARSAM5 is a demonstration program that shows you how to use the
View
Database Access Method (SARSAM) to retrieve information from the database. This sample lists GCR records and compares the line count to the amount of data in the subfile. The code verifies that the GCR line count matches the report saved in the database.
view
SARSAM5 is a demonstration program that shows you how to use the
View
Database Access Method (SARSAM) to retrieve information from the database. This sample lists GCR records and compares the line count to the amount of data in the subfile. The code verifies that the GCR line count matches the report saved in the database.
The following job control statements are required to execute SARSAM5:
  • JOB
    Initiates the job.
  • EXEC
    Specifies the program name (PGM=SARSAM5) and the high-level name of the product database. (PARM='VIEW.SYSTEM1').
  • STEPLIB DD
    Defines the load library containing SARSAM5. 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=SARSAM5,PARM='db_hlq,nnn|nnn-nnn' //STEPLIB DD DSN=CAI.CVDELOAD,DISP=SHR //SYSPRINT DD SYSOUT=* /* PARM='db_hlq'
where:
  • db_hlq
    Defines the high-level name of the product 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 SARSAM5 NAME SARSAM5(R) /*