View previous topic :: View next topic
|
Author |
Message |
chandrarkar
New User
Joined: 27 May 2008 Posts: 24 Location: india
|
|
|
|
HI ALL,
I have a table declared as
FILE INPUT TABLE 1000
[color=darkblue]********************************
ARG 01 16 A
DESC 17 44 A [/color]
the error its showing while processing the table was
A007 TABLE INPUT IS NOT IN SEQUENCE - INPUT
but i had sorted the records of the input by using the SYNCSORT control card
SORT FIELDS=(1,16,CH,A)
SUM FIELDS=NONE
BUT even then it is giving the same error.
can anyone suggest the correct solution
thank you |
|
Back to top |
|
|
Manuneedhi K
Active User
Joined: 07 May 2008 Posts: 115 Location: Chennai
|
|
|
|
Can you provide sample of the input data after sort. |
|
Back to top |
|
|
chandrarkar
New User
Joined: 27 May 2008 Posts: 24 Location: india
|
|
|
|
HI
the sample code after sort is
Code: |
NNNNVNNNNNYNY40not known
NNNNVNYNNNYNY40not known
NNNNYNYINNNNY* not known
NYNNVNYNNNYNY40not known
NNNNNNNNNNNYNN not known
NNNNNVNNNNNYNY60not known
NYYNNVNYINNYNY40not known
YNNYNVNYNNNNNY60not known
YNNYNVNYNNNYNY60not known
YNNYNVYYNNNYNY60not known
YNYNNVNNNNNYNY40not known
YYYYYYYYIYYYYY not known
5YYYYNYNYYNYY900Not Known
9NNNNNNNNNNYNN40not known
NNNNNNNNNNNNNY90cap90-cbr req
NNNNNNNNNNNYNN40cap40-scn auth |
thank u |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
That's not in sequence! |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
sorry to be picky, it does not look very sorted to me |
|
Back to top |
|
|
chandrarkar
New User
Joined: 27 May 2008 Posts: 24 Location: india
|
|
|
|
if u can see the above control card i have used,it has sorted them as i have coded it.
i have sorted the chars 1-16 only because thats the argument that's to be used as argument for the table.
can some one provide me the sol..
thank u |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Is the file a variable record length? |
|
Back to top |
|
|
chandrarkar
New User
Joined: 27 May 2008 Posts: 24 Location: india
|
|
|
|
yes its a VB(80 800) |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
chandrarkar wrote: |
yes its a VB(80 800) |
Sorting 1,16,ch,a sorts on the record length and 12 characters of data, try 5,16,ch,a. |
|
Back to top |
|
|
chandrarkar
New User
Joined: 27 May 2008 Posts: 24 Location: india
|
|
|
|
i have used what u have given and its working.
might i forgot the fact that the first 4 bytes stores the record info
thanks for ur help |
|
Back to top |
|
|
chandrarkar
New User
Joined: 27 May 2008 Posts: 24 Location: india
|
|
|
|
i am not clear with if matched i think i have to check the processing tomo.
both the files have to be sorted i guess.
and i was thinking like that is more a one to one processing.
like
FILEA FILEB
A A
B B
C D
D C
A and A match so it matches
Same with B and C doesnt satisy
SO DOESNT MATCH.and while coming to D IN FILEA the pointer is pointing to C in FILEB . so i have an ambiguity as for will it match or not.
if it matches then its sure that the FILEB is bieng read from the top again. |
|
Back to top |
|
|
lcmontanez
New User
Joined: 19 Jun 2007 Posts: 50 Location: Chicago
|
|
|
|
sync processing require both files to be sort by the key. |
|
Back to top |
|
|
chandrarkar
New User
Joined: 27 May 2008 Posts: 24 Location: india
|
|
|
|
i tried using "matched" and found that
both the files should be soted before using "matched"
FILEA - HAS NO DUPS(THINK ITS THE MASTER)
FILEB - HAS DUPS
BOTH FILES SHOULD BE SORTED BEFORE USING MATCHED
NOW MY REQUIREMENT IS GETTING SATISFIED WHEN I USE "IF MATCHED (FILEA(KEY1)+
(FILEB(KEY2)) "
FOR EVERY KEY IN FILEB WE HAVE MANY DUP KEYS IN FILEB.
SO ITS ABLE TO MATCH WHEN USING THE ABOVE LOGIC.
EVEN IF THE FILE ORDER IN "IF MATCHED()()" IS CHANGED ITS NOT ABLE TO DO IT. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
Back to top |
|
|
|