Why there is 'Invalid label' error?

JES2/3, JCL, utilities.
Post Reply
Raj Mainframe
New Member
Posts: 5
Joined: Sat Apr 26, 2014 11:31 pm

Why there is 'Invalid label' error?

Post by Raj Mainframe »

HI,

I've a JOb coded like this, but this gives an error:

Code: Select all

19 //INFILE DD DSN=ABCDIN.XYZ.DATA,DISP=OLD 
20 //01 DD DSN=ABCD.SOME.FILE1,DISP=MOD 
21 //02 DD DSN=ABCD.SOME.FILE2,DISP=MOD 
22 //SYSIN DD * 
//* 
STMT NO. MESSAGE 
20 IEFC662I INVALID LABEL 
21 IEFC662I INVALID LABEL
Can someone please guide why is the error coming?
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Why there is 'Invalid label' error?

Post by enrico-sorichetti »

because the label/name You used do not follow the rules
read and meditate on the manuals JCL GUIDE and JCL REFERENCE

reachable starting from ...

http://www-03.ibm.com/systems/z/os/zos/ ... index.html
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 8-)
Arun Mani
New Member
Posts: 7
Joined: Tue May 06, 2014 4:06 pm

Re: Why there is 'Invalid label' error?

Post by Arun Mani »

I think, you should try changing the DD names, you've them all numeric.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “JCL - Job Control Language.”