JCL scripting (INCLUDE)



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

JCL scripting (INCLUDE)

Postby wolffsw » Thu Jan 24, 2019 7:05 pm

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
wolffsw
 
Posts: 5
Joined: Thu Jan 24, 2019 6:53 pm
Has thanked: 1 time
Been thanked: 0 time

Re: JCL scripting (INCLUDE)

 

Re: JCL scripting (INCLUDE)

Postby enrico-sorichetti » Thu Jan 24, 2019 7:08 pm

"Input not recognized "


not enough to provide an answer

post the FULL message with the IDENTIFIER
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2876
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 153 times

Re: JCL scripting (INCLUDE)

Postby wolffsw » Thu Jan 24, 2019 7:19 pm

The step MAPUNLD gives error:

INCLUDE INHFS
Input not recognized
wolffsw
 
Posts: 5
Joined: Thu Jan 24, 2019 6:53 pm
Has thanked: 1 time
Been thanked: 0 time

Re: JCL scripting (INCLUDE)

Postby enrico-sorichetti » Thu Jan 24, 2019 7:47 pm

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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2876
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 153 times

Re: JCL scripting (INCLUDE)

Postby wolffsw » Thu Jan 24, 2019 8:00 pm

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.
wolffsw
 
Posts: 5
Joined: Thu Jan 24, 2019 6:53 pm
Has thanked: 1 time
Been thanked: 0 time

Re: JCL scripting (INCLUDE)

Postby enrico-sorichetti » Thu Jan 24, 2019 8:26 pm

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)                            
 
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2876
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 153 times

Re: JCL scripting (INCLUDE)

Postby wolffsw » Thu Jan 24, 2019 8:29 pm

I've read the manual syntax is OK
wolffsw
 
Posts: 5
Joined: Thu Jan 24, 2019 6:53 pm
Has thanked: 1 time
Been thanked: 0 time

Re: JCL scripting (INCLUDE)

Postby enrico-sorichetti » Thu Jan 24, 2019 8:33 pm

no doubt about
INPUT=MAPLIB2(M942201A) OUTPUT=MAPFILE



but what about
INCLUDE INHFS    

which seems the statement causing the error
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort

These users thanked the author enrico-sorichetti for the post:
wolffsw (Thu Jan 24, 2019 8:45 pm)
enrico-sorichetti
Global moderator
 
Posts: 2876
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 153 times

Re: JCL scripting (INCLUDE)

Postby wolffsw » Thu Jan 24, 2019 8:43 pm

It works....Thanks for your help
wolffsw
 
Posts: 5
Joined: Thu Jan 24, 2019 6:53 pm
Has thanked: 1 time
Been thanked: 0 time

Re: JCL scripting (INCLUDE)

Postby enrico-sorichetti » Thu Jan 24, 2019 10:12 pm

It works....

what works ? :evil:

helping you was as pleasant as getting a root canal treatment

this topic is a perfect example on how NOT ask for help
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2876
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 153 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post