09.07.2015 Views

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Invoking <strong>Access</strong> <strong>Method</strong> <strong>Services</strong>When you want to use an access method services function, enter a command andspecify its parameters. Your request is decoded one command at a time; theappropriate functional routines per<strong>for</strong>m all services required by that command.You can call the access method services program:v As a job or jobstepv From a TSO/E sessionv From within your own programYou can run the IDCAMS program (the access method services operating system)and include the command and its parameters as input to the program. You canalso call the IDCAMS program from within another program and pass thecommand and its parameters to the IDCAMS program.Time sharing option (TSO/E) users can run access method services functionalcommands from a TSO/E session as though they were TSO/E commands.See Appendix D, “Invoking <strong>Access</strong> <strong>Method</strong> <strong>Services</strong> from Your Program,” on page421, <strong>for</strong> more in<strong>for</strong>mation.Using a Job or Jobstep to invoke <strong>Access</strong> <strong>Method</strong> <strong>Services</strong>You can use (JCL) statements to call access method services. PGM=IDCAMSidentifies the access method services program.For example://YOURJOB JOB YOUR INSTALLATION’S JOB=ACCOUNTING DATA//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *access method services commands and their parameters/*vvvv//YOURJOB, the JOB statement, is required to describe your job to the system.You might be required to supply user identification, accounting, andauthorization in<strong>for</strong>mation with the JOB statement’s parameters.//STEP1, the EXEC statement, is required. With PGM=IDCAMS, this statementcalls access method services to decode and process the access method servicescommands and parameters contained in the SYSIN data set. You can use thePARM operand of the EXEC statement to pass parameters to the access methodservices program. Chapter 2, “Modal Commands,” on page 17, describes thePARM command and explains the options you can use.//SYSPRINT, the SYSPRINT DD statement, is required. It identifies the outputdevice to which access method services sends messages and output in<strong>for</strong>mation.//SYSIN, the SYSIN DD statement, is required to identify the source of theinput statements. An input statement is a functional or modal command and itsparameters. When you code SYSIN DD *, you identify the following statementsas input.The last input statement can be followed by a delimiter statement that has an * inthe first two columns.Chapter 1. Using <strong>Access</strong> <strong>Method</strong> <strong>Services</strong> 5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!