Appendix F. Batch Application Program Interface (API) 637
1st ed., 6/30/04 - 312579601
MVC WKFLATDD(KFLATDDL),KFLATDD Initialize the working
LA R4,WKFLATDD storage version of the DCB from the
OPEN ((R4),(OUTPUT)) copy in the constants area.
*
* Use QCDS OPEN to automatically allocate the current primary CDS
* and open the VTV record area:
*
OPENVOL DS 0H Open CDS VTV record area:
SLSUREQ QCDS, +
REQUEST=OPEN, +
DDNAME==CL8'CDS1', +
TYPE=VTV, +
TOKEN=WKTOK, +
UCALADR=WKUCAL, +
MF=(E,WKQCDS)
C R15,=A(SLUROPOK) Check for OPEN failure
BNE OPENERR Handle OPEN error
*
* Allocate response area buffer and map the response area:
*
L R0,QCDSBLEN Load response area buffer length
GETMAIN R,LV=(0) Request storage
ST R1,WKBUFP Store pointer to response area
LR R10,R1 Load pointer to response area
USING SLUR,R10 Map QCDS READ response area
*
* Outer loop - read CDS VTV record area in blocks:
*
READVOL DS 0H Read block of VTV records:
SLSUREQ QCDS, +
REQUEST=READ, +
DDNAME==CL8'CDS1', +
TYPE=VTV, +
BUFFER=WKBUFP, +
BUFLEN=QCDSBLEN, +
TOKEN=WKTOK, +
UCALADR=WKUCAL, +
MF=(E,WKQCDS)
ST R15,WKRDRC Save READ return code
C R15,=A(SLURRDEA) Check for READ failure
BH READERR Handle READ error
L R9,SLURQCDN Get number of VTV records
* present in this reply
L R7,SLURQCDO Offset to first VTV record
LA R8,SLURRPLY(R7) Pointer to first VTV record
USING SLUVTDAT,R8 Map VTV record
*
Figure 33. Sample 1 - Automatic CDS Allocation
(2 of 4)
Содержание Host Software Component 6.0
Страница 1: ...Host Software Component VM Implementation System Programmer s Guide Release 6 0 312579601...
Страница 4: ...iv VM HSC 6 0 System Programmer s Guide 1st ed 6 30 04 312579601...
Страница 24: ...xxiv VM HSC 6 0 System Programmer s Guide 1st ed 6 30 04 312579601...
Страница 30: ...xxx VM HSC 6 0 System Programmer s Guide 1st ed 6 30 04 312579601...
Страница 48: ...18 VM HSC 6 0 System Programmer s Guide 1st ed 6 30 04 312579601...
Страница 198: ...168 VM HSC 6 0 System Programmer s Guide 1st ed 6 30 04 312579601...
Страница 376: ...346 VM HSC 6 0 System Programmer s Guide 1st ed 6 30 04 312579601...
Страница 627: ...Appendix C Record Formats 597 1st ed 6 30 04 312579601 UVD994B5 CVAL Name Len Offset Value...
Страница 631: ...Appendix C Record Formats 601 1st ed 6 30 04 312579601 UVPTWSTD 03 UVPTYPE 000001 33 UVP9740 05 Name Len Offset Value...
Страница 632: ...602 VM HSC 6 0 System Programmer s Guide 1st ed 6 30 04 312579601...
Страница 683: ...Appendix F Batch Application Program Interface API 653 1st ed 6 30 04 312579601...
Страница 684: ...654 VM HSC 6 0 System Programmer s Guide 1st ed 6 30 04 312579601...
Страница 700: ...1st ed 6 30 04 312579601 670 VM HSC 6 0 System Programmer s Guide...
Страница 716: ...686 VM HSC 6 0 System Programmer s Guide 1st ed 6 30 04 312579601...
Страница 717: ......
Страница 718: ...Printed in U S A...