IKJ56500I COMMAND SG3 NOT FOUND
This is my rexx
/* REXX */
TRACE I
"EXECIO * DISKR IN (STEM DT."
DO I=3 TO DT.0
SG.I = WORD(DT.I,1)
DISK.I = WORD(DT.I,2)
PART.I = WORD(DT.I,3)
/* DETECTION DE L ENVIRONNEMENT */
SELECT
WHEN PART.I = 'AGRICA' THEN
DO
QUEUE SG.I ' ' DISK.I
"EXECIO * DISKW OUTK (FINIS"
QUEUE ""
END
WHEN PART.I = 'AUDIENS' THEN
DO
QUEUE SG.I ' ' DISK.I
"EXECIO * DISKW OUTO (FINIS"
QUEUE ""
END
WHEN (PART.I = 'B2V' ! PART.I = 'URCREP') THEN
DO
QUEUE SG.I ' ' DISK.I
"EXECIO * DISKW OUTB (FINIS"
QUEUE ""
END
WHEN (PART.I = 'NHCBTP' ! PART.I = 'BNPCAR' ! PART.I = 'VRF') THEN
DO
QUEUE SG.I ' ' DISK.I
"EXECIO * DISKW OUTN (FINIS"
QUEUE ""
END
WHEN (PART.I = 'PROBTP' ! PART.I = 'MNRA' ! PART.I = 'CRP' ! ,
PART.I = 'REGARD' ! PART.I = 'SEVEANE') THEN
DO
QUEUE SG.I ' ' DISK.I
"EXECIO * DISKW OUTP (FINIS"
QUEUE ""
END
WHEN (PART.I = 'DVLP' ! PART.I = 'SICAP') THEN
DO
QUEUE SG.I ' ' DISK.I
"EXECIO * DISKW OUTD (FINIS"
QUEUE ""
END
WHEN (PART.I = 'HACTIF' ! PART.I = 'GIP') THEN
DO
QUEUE SG.I ' ' DISK.I
"EXECIO * DISKW OUTH (FINIS"
QUEUE ""
END
WHEN (PART.I = 'HDS' ! PART.I = 'SHDS') THEN
DO
QUEUE SG.I ' ' DISK.I
"EXECIO * DISKW OUTS (FINIS"
QUEUE ""
END
WHEN PART.I = 'IRP' THEN
DO
QUEUE SG.I ' ' DISK.I
"EXECIO * DISKW OUTG (FINIS"
QUEUE ""
END
WHEN PART.I = 'LOURMEL' THEN
DO
QUEUE SG.I ' ' DISK.I
"EXECIO * DISKW OUTL (FINIS"
QUEUE ""
END
WHEN PART.I = 'PREPROD' THEN
DO
QUEUE SG.I ' ' DISK.I
"EXECIO * DISKW OUTZ (FINIS"
QUEUE ""
END
WHEN PART.I = 'USINEVAL' THEN
DO
QUEUE SG.I ' ' DISK.I
"EXECIO * DISKW OUTV (FINIS"
QUEUE ""
END
WHEN PART.I = 'USINEPRE' THEN
DO
QUEUE SG.I ' ' DISK.I
"EXECIO * DISKW OUTW (FINIS"
QUEUE ""
END
WHEN PART.I = 'USINERET' THEN
DO
QUEUE SG.I ' ' DISK.I
"EXECIO * DISKW OUTU (FINIS"
QUEUE ""
END
OTHERWISE DO
EXIT
END
END
"EXECIO 0 DISKW IN (FINIS"
END
and the step :
//ENVIR01 EXEC PGM=IKJEFT01,DYNAMNBR=30,REGION=5000K
//SYSEXEC DD DISP=SHR,DSN=NONPROD.UT40.OUTIL.INITCLJB
//IN DD DISP=SHR,DSN=NONPROD.DORSCLD.RETDISK
//SYSTSPRT DD SYSOUT=*
//OUTB DD DISP=SHR,DSN=BSHREXP.DORSCLD.ENVIR
//OUTD DD DISP=SHR,DSN=DSHREXP.DORSCLD.ENVIR
//OUTG DD DISP=SHR,DSN=GSHREXP.DORSCLD.ENVIR
//OUTH DD DISP=SHR,DSN=HSHREXP.DORSCLD.ENVIR
//OUTK DD DISP=SHR,DSN=KSHREXP.DORSCLD.ENVIR
//OUTL DD DISP=SHR,DSN=LSHREXP.DORSCLD.ENVIR
//OUTN DD DISP=SHR,DSN=NSHREXP.DORSCLD.ENVIR
//OUTO DD DISP=SHR,DSN=OSHREXP.DORSCLD.ENVIR
//OUTP DD DISP=SHR,DSN=PSHREXP.DORSCLD.ENVIR
//OUTS DD DISP=SHR,DSN=SSHREXP.DORSCLD.ENVIR
//OUTU DD DISP=SHR,DSN=USHREXP.DORSCLD.ENVIR
//OUTV DD DISP=SHR,DSN=VSHREXP.DORSCLD.ENVIR
//OUTW DD DISP=SHR,DSN=WSHREXP.DORSCLD.ENVIR
//OUTZ DD DISP=SHR,DSN=ZSHREXP.DORSCLD.ENVIR
//SYSTSIN DD *
%AORSCLD1
//*
the error is :
4 *-* DO I=3 TO DT.0
IKJ56500I COMMAND SG3 NOT FOUND
READY
END
and the step is abended with a RC=12
SG3 is the last line of thee input dataset :
//IN DD DISP=SHR,DSN=NONPROD.DORSCLD.RETDISK
the con,tent is ::
VIEW NONPROD.DORSCLD.RETDISK
Command ===>
****** ***************************** Top of Data ********
000001 SGPRO TOTO1 PROBTP
000002 SGPRO TOTO2 PROBTP
000003 SGPRO TOTO3 PROBTP
000004 SGPRO TOTO4 PROBTP
000005 SGPRO TOTO5 PROBTP
000006 SG1 TOTO6 LOURMEL
000007 SG2 TOTO7 IRP
000008 SG3 TOTO8 HACTIF
****** **************************** Bottom of Data ******
Thank's for your help