Make your own free website on Tripod.com
Hints

Back Issue

SMP/E API

OS/390 Release 3 SMP/E included the GIMAPI programming interface. GIMAPI provides a documented read-only interface to data maintained by SMP/E in the SMP/E CSI datasets. Sample C program SMPEUTIL provides a control statement interface to the QUERY command provided by GIMAPI.

Sample JCL

Sample JCL appears below:
//SCAN EXEC PGM=SMPEUTIL,REGION=6M
//STEPLIB  DD DISP=SHR,DSN=steplib
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
CSI=GLOBAL.CSI;
ZONE=GLOBAL;
ENTRY=SYSMOD;
SUBENT=MOD;
FILTER=SMODTYPE='PTF' & APPLY = 'NO' & SUPING = 'AR37611';
//
The sample scans the global zone for sysmod entries which are of type PTF, are not applied and supercede APAR AR37611. For each SYSMOD matching these criteria, the MOD subentries are displayed.

Control Statements

The following control statements are required: A semi-colon is used to terminate each control statement. If the FILTER condition will not fit on one line, end the statement with a semi-colon and enter another FILTER control statement. Each FILTER statement will be appended to the preceding one. For example, the following FILTER condition:
FILTER=(SMODTYPE='PTF' | SMODTYPE='USERMOD') & FMID = 'HMP1A00';
FILTER= & APPLY = 'YES' & RECDATE > '99335';
selects PTFs or USERMODs for FMID HMP1A00 that are applied and were received after Julian date 1999.335. Note that SMP/E uses a sliding date window to represent date values; refer to the SMP/E Reference for more information.

Feedback

Comments or suggestions can be sent to the author.

Last Month's Topic

Big Iron