Page 1 of 1
JCL scripting (INCLUDE)
Posted:
Thu Jan 24, 2019 7:05 pm
by wolffsw
Hi Forum,
I want to include an USS file in my JCL-script and I got the error:
"Input not recognized "
Can anyone help me?
Regards, Stef
//MAPUNLD EXEC PGM=DTXMPULD
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//CEEDUMP DD DUMMY
//STEPLIB DD DSN=SYS1.SDTXLOAD,DISP=SHR
//MAPKSDS DD DSN=CICSS.O1.WTXMAP,DISP=SHR
//MAPFILE DD DSN=&&MAPFILE,DISP=(,PASS),
// DCB=(LRECL=4096,RECFM=F),UNIT=SYSDA,
// SPACE=(TRK,(20,5),RLSE)
//MAPLIB DD DSN=SYS1.SDTXSAMP,DISP=SHR
//MAPLIB2 DD DSN=RABO.O1.WTXMAP,DISP=SHR
//INHFS DD PATH='/u/ups/ucdtest/insert_into_wtx_jcl.txt',
// PATHOPTS=(ORDONLY)
//SYSIPT DD *
INCLUDE INHFS
/*
coded for readability
Re: JCL scripting (INCLUDE)
Posted:
Thu Jan 24, 2019 7:08 pm
by enrico-sorichetti
"Input not recognized "
not enough to provide an answer
post the FULL message with the IDENTIFIER
Re: JCL scripting (INCLUDE)
Posted:
Thu Jan 24, 2019 7:19 pm
by wolffsw
The step MAPUNLD gives error:
INCLUDE INHFS
Input not recognized
Re: JCL scripting (INCLUDE)
Posted:
Thu Jan 24, 2019 7:47 pm
by enrico-sorichetti
every well written program prefixes its messages with a MSG id
<some letters><some numbers>
to make easier the research in the manuals
since You did not care to post the MSG id the only thing that we can do is just guess
and just repeat what the program told
the string read from the DDNAME SYSIPT was not recognized
nothing from the data posted implies that using an USS file is the culprit
Re: JCL scripting (INCLUDE)
Posted:
Thu Jan 24, 2019 8:00 pm
by wolffsw
Hi Enrico,
Thank you for your replies:
The content of the USS file:
INPUT=MAPLIB2(M942201A) OUTPUT=MAPFILE
INPUT=MAPLIB2(M942201C) OUTPUT=MAPFILE
So the JCL script (with the USS file included):
...
//SYSIPT DD *
INPUT=MAPLIB2(M942201A) OUTPUT=MAPFILE
INPUT=MAPLIB2(M942201B) OUTPUT=MAPFILE
/*
....
The JCL script runs well with the statements hardcoded; however the members of the USS file will change everytime so that's why I want to include the file.
Re: JCL scripting (INCLUDE)
Posted:
Thu Jan 24, 2019 8:26 pm
by enrico-sorichetti
the topic is leading to nowhere
why not read the product manual to see the correct syntax of the include statement ?
or as an alternative, instead of
//INHFS DD PATH='/u/ups/ucdtest/insert_into_wtx_jcl.txt',
// PATHOPTS=(ORDONLY)
//SYSIPT DD *
INCLUDE INHFS
/*
try
//SYSIPT DD PATH='/u/ups/ucdtest/insert_into_wtx_jcl.txt',
// PATHOPTS=(ORDONLY)
Re: JCL scripting (INCLUDE)
Posted:
Thu Jan 24, 2019 8:29 pm
by wolffsw
I've read the manual syntax is OK
Re: JCL scripting (INCLUDE)
Posted:
Thu Jan 24, 2019 8:33 pm
by enrico-sorichetti
no doubt about
INPUT=MAPLIB2(M942201A) OUTPUT=MAPFILE
but what about
which seems the statement causing the error
Re: JCL scripting (INCLUDE)
Posted:
Thu Jan 24, 2019 8:43 pm
by wolffsw
It works....Thanks for your help
Re: JCL scripting (INCLUDE)
Posted:
Thu Jan 24, 2019 10:12 pm
by enrico-sorichetti
It works....
what works ?
helping you was as pleasant as getting a root canal treatment
this topic is a perfect example on how NOT ask for help