Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Fri Jul 13, 2007 2:29 pm Post subject:
Aswin,
If you ran this job as you show it, it would have gotten an error message and RC=16 because FNAME=IN1 is invalid syntax (it should be FNAMES=IN1), etc. So, of course, your output would be empty. There are other syntax errors as well.
I don't know what your input looks like, what you want for output or what you're trying to do with this error riddled job. Instead of trying to fix it, let's start over so we can show you how to do what you want to do the correct way.
Show an example of the record in each input file (relevant fields only) and what you expect for output. If there are duplicates within input file1, show that in your example. If there are duplicates within input file2, show that in your example. Give the RECFM and LRECL of the input files. Give the starting position, length and format of the relevant fields. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
My input file has the key field start from 7 and length is 9 (comp3 field)
same in the both the input file .
the file one will have duplicate but file two will not have duplicates.
i want the the matching records form both file.
the total lenth of record is 1008 and is a Fb record.
I have also tried this but this is giving a SOC7 error
//TOOLIN DD *
COPY FROM(IN1) TO(TMP1) USING(CTL1)
COPY FROM(IN2) TO(TMP1) USING(CTL2)
SPLICE FROM(TMP1) TO(OUT) ON(7,9,PD) WITH(1010,1) USING(CTL3)
//CTL1CNTL DD *
OUTREC FIELDS=(1,1008,C'11')
//CTL2CNTL DD *
OUTREC FIELDS=(1,1008,C'12')
//CTL3CNTL DD *
OUTFIL FNAME=OUT,INCLUDE(1009,2,CH,EQ,C'12'),OUTREC=(1,1008)
/*
If Still unresolved then,
1. For Clarity paste the TOOLMSG and DFSMSG.
2. Give the sample set of i/p's and expected o/p's. _________________ cHEERs
krisprems
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Sat Jul 14, 2007 11:08 am Post subject:
Quote:
But this job gave me a return code of zero.
I don't see how considering you have FNAME= instead of FNAMES= in three places and FILEDS= instead of FIELDS= in two places and other syntax errors as well.
I would really like to see the //TOOLMSG and //DFSMSG output for that job to see how you managed to get a RC=0 with all those syntax errors. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
MY REQUIREMENTS ARE AS FOLLOWS
My input file has the key field start from 7 and length is 9 (comp3 field)
same in the both the input file .
the file one will have duplicate but file two will not have duplicates.
i want the the matching records form both file.
the total lenth of record is 1008 and is a Fb record.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Mon Jul 16, 2007 11:06 am Post subject:
Aswin,
What's wrong is that your job is NOT using the correct approach. It's not even close.
Please provide the examples previously requested.
Quote:
Show an example of the record in each input file (relevant fields only) and what you expect for output. If there are duplicates within input file1, show that in your example. If there are duplicates within input file2, show that in your example.
There are numerous examples on this board of how to do the kind of thing you're trying to do. You could search for them. At the very least they will show you how to post the examples needed so somebody can help you. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
my input file A - example
s.no name
121 xxxx t1 pass
121 xxxx t2
121 zzzz t1 pass
121 zzzz t2
121 yyyy t1 fail
121 yyyy t2
IN the first step iam geting the records which has the keword "pass"
OPTION COPY
SORT FIELDS=(4,4,PD,A)
INCLUDE COND=(168,08,CH,EQ,C'pass')
In step2 iam getting the t2 recods alone
OPTION COPY
SORT FIELDS=(7,9,PD,A)
INCLUDE COND=(9,02,CH,EQ,C'T2')
the file of both step is now used to get the t2 recods of the pass recod using the
name fields (ie xxxx yyyy zzzz) if the name between file 1(got from step1) and file2(got from step2). it should be taken.
so iam using the icetool step for this .
Ulimate requirment we know only the Keword "PASS" .WE SHOULD GET THE EQUVALENT T2 RECORD FOR THEM
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Mon Jul 16, 2007 3:13 pm Post subject:
You're not giving me what I asked for. I don't want you to explain what YOUR job is doing. I need you to take a step back and explain what you're trying to do. Nothing you've said has even made it clear how many inputs and outputs you have. You show IN1 and IN2 in your job but then only talk about input fileA. You show OUT, FILEA and FILEB but never explain what those are.
You need to explain what you're trying to do clearly. You need to show an example of the records in EACH input file (relevant fields only) and what you expect for EACH output file. If there are duplicates within input file1, show that in your example. If there are duplicates within input file2, show that in your example. Give the starting position, length and format of each relevant field. If you can't do that, then I can't help you. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum