SARSAM3

SARSAM3 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 ACIF resource information in the
View
database.
view
SARSAM3
SARSAM3 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 ACIF resource information in the
View
database.
The program PARM is used to specify the database and an optional resource key. If no resource key is provided, all ACIF resources are reported.
The following job control statements are required to execute SARSAM3.
  • JOB
    Initiates the job.
  • EXEC
    Specifies the program name (PGM=SARSAM3) and the high-level name of the product database. The PARM parameter can also specify a resource key (PARM='VIEW.SYSTEM1,resource-key').
  • STEPLIB DD
    Defines the load library containing SARSAM3. 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 ACIF resources. 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=SARSAM3,PARM='db_hlq,resourcekey' //STEPLIB DD DSN=CAI.CVDELOAD,DISP=SHR //SYSPRINT DD SYSOUT=* /* PARM='db_hlq,resourcekey'
where:
  • db_hlq
    Defines the high-level name of the product database.
  • resourcekey
    Specifies the ACIF resource key that is to be listed.
    Default is to report all ACIF resource in 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 SARSAM3 NAME SARSAM3(R) /*