Page 1 of 1

Beginner needs help, invalid label.

PostPosted: Wed Oct 09, 2013 12:27 am
by MeatHaven
When checking the output I get
6 IEFC662I INVALID LABEL
line 6 is this
//SYSOUT DD SYSOUT=*

Re: Beginner needs help, invalid label.

PostPosted: Wed Oct 09, 2013 12:50 am
by enrico-sorichetti
the statement as posted looks correct,
most probably the error is due to the previous statement.

and please use the code tags ( they used a fixed pith font, and make things more readable for code, jcl, sysout, data
see
//SYSOUT DD SYSOUT=*

Re: Beginner needs help, invalid label.

PostPosted: Wed Oct 09, 2013 1:06 am
by MeatHaven
Thanks, this is the lines after and before
Line before

Line after
//SORTIN   DD   *

Re: Beginner needs help, invalid label.

PostPosted: Wed Oct 09, 2013 1:52 am
by MeatHaven
MeatHaven wrote:When checking the output I get
6 IEFC662I INVALID LABEL
line 6 is this
//SYSOUT DD SYSOUT=*

Sorry, its occurring the line before this.
Of which is just a delimiter statement.

Re: Beginner needs help, invalid label.

PostPosted: Wed Oct 09, 2013 2:14 am
by Akatsukami
I would browse or edit the JCL with HEX ON; it is possible that you have a non-displayable character in the name field that is causing this error.

Re: Beginner needs help, invalid label.

PostPosted: Wed Oct 09, 2013 2:26 am
by MeatHaven
Appears not, I'm just gonna send what I have so far. (This is me just testing right now)
//JOBNAME1 JOB 1,NOTIFY=&SYSUID,
//        MSGCLASS=H,CLASS=J  ,MSGLEVEL=(1,1)
//SORTPGM  EXEC  PGM=SORT
//SYSIN    DD  *
    SORT     FIELDS=(24,4,CH,A)
/*
//SYSOUT   DD  SYSOUT=*
//SORTIN   DD  * 

Then I have some names down and at the end is;
/*
//SORT%OUT  DD  SYSOUT=*
/*

Re: Beginner needs help, invalid label.

PostPosted: Wed Oct 09, 2013 2:39 am
by Akatsukami
//SORT%OUT  DD  SYSOUT=*

Well, the percent sign is certainly invalid!

As to why the message is assigned to the wrong line, I'd have to see the JES JCL listing to do more than guess wildly.

Re: Beginner needs help, invalid label.

PostPosted: Wed Oct 09, 2013 2:47 am
by MeatHaven
Akatsukami wrote:
//SORT%OUT  DD  SYSOUT=*

Well, the percent sign is certainly invalid!

As to why the message is assigned to the wrong line, I'd have to see the JES JCL listing to do more than guess wildly.

Well that goes to show how far I still have to go. Anyways thanks for the help, can't believe I did that.

Re: Beginner needs help, invalid label.

PostPosted: Wed Oct 09, 2013 2:05 pm
by NicC
You only need a code tag at the start and end of block - not each line. I have fixed it up for you.

Re: Beginner needs help, invalid label.

PostPosted: Wed Oct 09, 2013 3:28 pm
by steve-myers
MeatHaven wrote:... Well that goes to show how far I still have to go. Anyways thanks for the help, can't believe I did that.
The JCL scanner often (more often than not, at least it seems to me, after 40+ years) reports the error on the wrong line. If you can't deduce your error where the scanner claims it found the error, backup a line or 2, and the odds are you'll find the real problem.