rockpainter
Programmer
Limiation of IDCAMS ALLOC in batch...
In the "z/OS V1R6.0 DFSMS Access Method Services for Catalogs"
manual, Document Number: SC26-7394-03, topic '4.1 Restrictions' says:
.
- If the access method services job step contains either the SYSTSIN
or SYSTSPRT DD statements, the ALLOCATE command is unsuccessful.
Access method services allocates the SYSTSIN and SYSTSPRT DD
statements to pass the command to the TMP and to retrieve any error
messages that are issued. This is done for every ALLOCATE command.
Any TMP error messages appear in the SYSPRINT data set, and access
method services prints a summary message to show the final status
of the command.
.
However, batch TSO will not run without //SYSTSPRT. So we cannot
do IDCAMS ALLOC in batch TSO.
Work Around below... Comments please
Best Regards,
Bruce
Notice the ALLOC is TSO and the new GDG is rolled into the BASE by the
DUMMY REPRO...
//*
//JS01 EXEC PGM=IEBGENER
//PROIGN DD DUMMY
//SYSPRINT DD DUMMY
//SYSIN DD DUMMY
//SYSUT2 DD DSN=&&SYSEXEC(TESTREX),DISP=(,PASS),UNIT=SYSALLDA,
// SPACE=(CYL,(5,5,5))
//SYSUT1 DD *,DLM=@@
/* rexx */
/* - - - - - - - - - - - - - - - - - - - - - - - */
/* House Keeping going into routine... */
/* - - - - - - - - - - - - - - - - - - - - - - - */
msg_status = MSG("OFF");
address TSO;
"FREE DD(INDD OUTDD)";
"FREE FI(SYSIN SYSPRINT)";
"FREE ATTRLIST(DCB01)";
msg_status = MSG("ON");
"ATTRIB DCB01 RECFM(F) LRECL(80) BLKSIZE(80)";
"ALLOC FILE(SYSIN) UNIT(WORK) SP(5,5) TRACK REUSE USING(DCB01)";
"ALLOC DD(SYSPRINT) SYSOUT";
"ALLOC DA('TEST.II.G0019V00') SHR DD(INDD)";
"ALLOC DA('TEST.II.G0020V00') DD(OUTDD)"||,
" LIKE('TEST.II.G0019V00')"||,
" SPACE(1,0) TRACKS BLKSIZE(6144)";
QUEUE ' REPRO - '
QUEUE ' INFILE(INDD) -'
QUEUE ' OUTFILE(OUTDD) -'
QUEUE ' COUNT(0)'
QUEUE ''
address TSO
"EXECIO * DISKW SYSIN (FINIS";
"CALL *(IDCAMS)" /* <-- Run IDCAMS */
/* - - - - - - - - - - - - - - - - - - - - - - - */
/* House Keeping going out of routine... */
/* - - - - - - - - - - - - - - - - - - - - - - - */
msg_status = MSG("OFF");
address TSO;
"FREE FI(SYSIN SYSPRINT)";
"FREE ATTRLIST(DCB01)";
"FREE DD(INDD OUTDD)";
msg_status = MSG("ON");
exit
@@
//JS02 EXEC PGM=IKJEFT1B,DYNAMNBR=30,REGION=0M
//PROIGN DD DUMMY
//SYSEXEC DD DSN=&&SYSEXEC,DISP=(OLD,DELETE)
//SYSTSPRT DD SYSOUT=8
//SYSTSIN DD *
PROF MSG
%TESTREX
In the "z/OS V1R6.0 DFSMS Access Method Services for Catalogs"
manual, Document Number: SC26-7394-03, topic '4.1 Restrictions' says:
.
- If the access method services job step contains either the SYSTSIN
or SYSTSPRT DD statements, the ALLOCATE command is unsuccessful.
Access method services allocates the SYSTSIN and SYSTSPRT DD
statements to pass the command to the TMP and to retrieve any error
messages that are issued. This is done for every ALLOCATE command.
Any TMP error messages appear in the SYSPRINT data set, and access
method services prints a summary message to show the final status
of the command.
.
However, batch TSO will not run without //SYSTSPRT. So we cannot
do IDCAMS ALLOC in batch TSO.
Work Around below... Comments please
Best Regards,
Bruce
Notice the ALLOC is TSO and the new GDG is rolled into the BASE by the
DUMMY REPRO...
//*
//JS01 EXEC PGM=IEBGENER
//PROIGN DD DUMMY
//SYSPRINT DD DUMMY
//SYSIN DD DUMMY
//SYSUT2 DD DSN=&&SYSEXEC(TESTREX),DISP=(,PASS),UNIT=SYSALLDA,
// SPACE=(CYL,(5,5,5))
//SYSUT1 DD *,DLM=@@
/* rexx */
/* - - - - - - - - - - - - - - - - - - - - - - - */
/* House Keeping going into routine... */
/* - - - - - - - - - - - - - - - - - - - - - - - */
msg_status = MSG("OFF");
address TSO;
"FREE DD(INDD OUTDD)";
"FREE FI(SYSIN SYSPRINT)";
"FREE ATTRLIST(DCB01)";
msg_status = MSG("ON");
"ATTRIB DCB01 RECFM(F) LRECL(80) BLKSIZE(80)";
"ALLOC FILE(SYSIN) UNIT(WORK) SP(5,5) TRACK REUSE USING(DCB01)";
"ALLOC DD(SYSPRINT) SYSOUT";
"ALLOC DA('TEST.II.G0019V00') SHR DD(INDD)";
"ALLOC DA('TEST.II.G0020V00') DD(OUTDD)"||,
" LIKE('TEST.II.G0019V00')"||,
" SPACE(1,0) TRACKS BLKSIZE(6144)";
QUEUE ' REPRO - '
QUEUE ' INFILE(INDD) -'
QUEUE ' OUTFILE(OUTDD) -'
QUEUE ' COUNT(0)'
QUEUE ''
address TSO
"EXECIO * DISKW SYSIN (FINIS";
"CALL *(IDCAMS)" /* <-- Run IDCAMS */
/* - - - - - - - - - - - - - - - - - - - - - - - */
/* House Keeping going out of routine... */
/* - - - - - - - - - - - - - - - - - - - - - - - */
msg_status = MSG("OFF");
address TSO;
"FREE FI(SYSIN SYSPRINT)";
"FREE ATTRLIST(DCB01)";
"FREE DD(INDD OUTDD)";
msg_status = MSG("ON");
exit
@@
//JS02 EXEC PGM=IKJEFT1B,DYNAMNBR=30,REGION=0M
//PROIGN DD DUMMY
//SYSEXEC DD DSN=&&SYSEXEC,DISP=(OLD,DELETE)
//SYSTSPRT DD SYSOUT=8
//SYSTSIN DD *
PROF MSG
%TESTREX