Backward reference - guidance



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

Backward reference - guidance

Postby gowthamgyaa » Fri Oct 05, 2012 6:31 pm

Hi everyone,
I used Backward reference to execute two execution steps in jcl statements. If the execution program is of same kind for both the steps(i.e., IEBGENER FOR STEP1 & STEP2)its getting executed, but if i use (IEBGENER FOR STEP1 AND SORT FOR STEP2) , only step1 is being executed.
I'l provide you the statements below, kindly guide me to get knowledge in this.


//JOB STATEMNT
//STEP1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=******.FINANCE.EMP,DISP=SHR
//SYSUT2 DD DSN=*****.BACK.EMP,DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(5,10)),
// DCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=800)
//SYSIN DD *
/*
//
//STEP2 EXEC PGM=SORT
//SYSPRINT DD SYSOUT=*
//SORTIN DD DSN=*.STEP1.SYSUT1,DISP=SHR
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=(5,2,CH,A)
/*
//

Only Step1 i.e., IEBGENER is getting executed , sorting is not getting executed.



RECORDS IN FINANCE.EMP
001 cse 1005
002 ece 1111
008 mec 1007
014 cse 1222
077 aaa 1453
088 sss 1000
015 mmm 1005


Kindly guide me what may be wrong in this.


Kind regards
gyaa
gowthamgyaa
 
Posts: 101
Joined: Wed Sep 05, 2012 11:18 pm
Has thanked: 67 times
Been thanked: 0 time

Re: Backward reference - guidance

 

Re: Backward reference - guidance

Postby steve-myers » Fri Oct 05, 2012 6:38 pm

The // statement after the IEBGENER step implies end of job; the sort step was never in the job.
steve-myers
Global moderator
 
Posts: 1886
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Re: Backward reference - guidance

Postby gowthamgyaa » Fri Oct 05, 2012 6:45 pm

Thank you very much for your kind reply steve.
Terribly sorry just now i referred to it, I had just used without // while am executing.
Kindly pardon me and guide me for the knowledge.


Kind regards
gyaa
gowthamgyaa
 
Posts: 101
Joined: Wed Sep 05, 2012 11:18 pm
Has thanked: 67 times
Been thanked: 0 time

Re: Backward reference - guidance

Postby enrico-sorichetti » Fri Oct 05, 2012 6:47 pm

Kindly pardon me and guide me for the knowledge.

why don' t You start reading the manuals ?
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: 2643
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: Backward reference - guidance

Postby gowthamgyaa » Fri Oct 05, 2012 6:52 pm

@enrico,
Thank you for your kind reply.
Actually I read the manuals for every try but still facing an error and need some experience hands to give me some knowledge in that.
I hope you had founded the error in that, can you please guide me the same?


Kind regards
gyaa
gowthamgyaa
 
Posts: 101
Joined: Wed Sep 05, 2012 11:18 pm
Has thanked: 67 times
Been thanked: 0 time

Re: Backward reference - guidance

Postby NicC » Fri Oct 05, 2012 6:59 pm

With only 18 lines to check you should have been able to spot the error fairly quickly.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: Backward reference - guidance

Postby gowthamgyaa » Fri Oct 05, 2012 7:09 pm

@Nicc,
In my point of view I guess you saying me about the Input field which i had given where it requires space, but actually there was a space in that still i cant execute it, Kindly pardon me if am wrong and give me some more hints to solve this.

//JOB STATEMNT
//STEP1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=******.FINANCE.EMP,DISP=SHR
//SYSUT2 DD DSN=*****.BACK.EMP,DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(5,10)),
// DCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=800)
//SYSIN DD *
/*
//STEP2 EXEC PGM=SORT
//SYSPRINT DD SYSOUT=*
//SORTIN DD DSN=*.STEP1.SYSUT1,DISP=SHR
//SORTOUT DD SYSOUT=*
//SYSIN DD *
      SORT FIELDS=(5,2,CH,A)
/*
//


Kind regards
gyaa
gowthamgyaa
 
Posts: 101
Joined: Wed Sep 05, 2012 11:18 pm
Has thanked: 67 times
Been thanked: 0 time

Re: Backward reference - guidance

Postby NicC » Fri Oct 05, 2012 7:11 pm

what does line 10 do? Hint: You have already been told within this thread.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: Backward reference - guidance

Postby enrico-sorichetti » Fri Oct 05, 2012 7:22 pm

why, instead of whining don' t You post the output of Your run, so that we have something to suggest?

imo the initial iebgener is pretty useless

since You read something and write something else
You can just use as input to the sort the original file
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: 2643
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: Backward reference - guidance

Postby gowthamgyaa » Fri Oct 05, 2012 7:24 pm

@Nicc,
Thank you for your hints, I got a guidance in the yesterday post that for continuation we have to insert a non-empty character in the line 72, Is it the case nicc?


Kind regards
gyaa
gowthamgyaa
 
Posts: 101
Joined: Wed Sep 05, 2012 11:18 pm
Has thanked: 67 times
Been thanked: 0 time

Next

Return to JCL