Page 1 of 2

JCL TUTE

PostPosted: Thu Feb 03, 2011 3:43 pm
by Deepak kumar25
HELLO THIS IS A PROG FOR MERGING THE CONTENT OF TWO FILES IN ONE FILE.

WHERE 01PS IS MY INPUT FIRST FILE WHICH CONTAIN THE INPUT DATA OF ONE FILE
THE CONTENTS OF FIRST FILE IS FOLLOWS
DEEPAK
KUMAR

WHERE 02PS IS MY SECOND FILE WHICH CONTAIN THE INPUT DATA OF SECOND FILE
THE CONTENTS OF SECOND FILE IS AS FOLLOWS

RAWAT
HTS

when i execute the prog then it give error
when i see the error from using start 9.s.st
it gives the error
3 ef6471 first character of name not alphabetic or not National.
4 ef6471 first characte of name not alphabetic or not National.


please help me . thanks in advance.
*********************************************************************************************************************
//FSS108AB JOB,,NOTIFY=&SYSUID
//STEP1 EXEC PGM=SORT
//SORTIN DD DSN=FSS108.KUMAR.01PS,DISP=SHR
//SORTIN DD DSN=FSS108.KUMAR.02PS,DISP=SHR
//SORTOUT DD DSN=FSS108.KUMAR.OUT1,DISP=SHR
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD*
MERGE FIELDS=(1,2,CH)
/*

Re: JCL TUTE

PostPosted: Thu Feb 03, 2011 3:54 pm
by Robert Sample
Review the rules of data set names: 1 to 44 characters, no more than 8 characters before a period, the first character after a period must be a letter or special character not a number.

Your SORTIN and SORTOUT data set names do not fulfill all these rules, and the error message tells you exactly and precisely what your problem is.

Re: JCL TUTE

PostPosted: Thu Feb 03, 2011 7:28 pm
by MrSpock
What exactly is a TUTE?

Re: JCL TUTE

PostPosted: Thu Feb 03, 2011 7:46 pm
by Robert Sample
A short blast on a floot? :-)

Re: JCL TUTE

PostPosted: Thu Feb 03, 2011 7:56 pm
by MrSpock
I haven't yet mentioned that this job isn't going to work anyway, since the merge records, at least as shown in the example, aren't properly sorted based on the merging key.

Re: JCL TUTE

PostPosted: Thu Feb 03, 2011 8:44 pm
by mickeywhite
and two sortin DD statements

Re: JCL TUTE

PostPosted: Fri Feb 04, 2011 12:05 am
by dick scherrer
And TS disappears into the sunset. . . :?

Re: JCL TUTE

PostPosted: Fri Feb 04, 2011 12:19 am
by steve-myers
I think the TS meant SORTIN01 and SORTIN02?

Re: JCL question

PostPosted: Fri Feb 04, 2011 9:50 am
by Deepak kumar25
but sir what i take dsn or in what format?

Re: JCL TUTE

PostPosted: Fri Feb 04, 2011 10:15 am
by steve-myers
Robert Sample wrote:Review the rules of data set names: 1 to 44 characters, no more than 8 characters before a period, the first character after a period must be a letter or special character not a number.

Your SORTIN and SORTOUT data set names do not fulfill all these rules, and the error message tells you exactly and precisely what your problem is.
Mr. Sample is referring to FSS108.KUMAR.01PS and the other dataset name.