View previous topic :: View next topic
Author
Message
P.RAJESH Currently Banned New User Joined: 20 Mar 2008Posts: 54 Location: chennai
Hi all,
May be this question discussed beforeo but i can't able to find it in forum so that posting
Question is :
I need to sort an input dataset based on col 11 to lenght 6, this field value appear in data set as in hex decimal format.
I used the control card is INCLUDE=(11,6,BI,LE,X' ø Ñ ')
ø Ñ = generated by previous job.
if i use this control card got ICE113A error message.
All field positions are correct in control i specified.
Back to top
gcicchet Senior Member Joined: 28 Jul 2006Posts: 1702 Location: Australia
Hi,
please post entire jobb especially all the SYSIN DD statements
Gerry
Back to top
P.RAJESH Currently Banned New User Joined: 20 Mar 2008Posts: 54 Location: chennai
hi Gerry,
OPTION COPY
OUTFIL FNAMES=OUTFIL1,
INCLUDE=(11,6,BI,LE,X' ø Ñ ')
OUTFIL FNAMES=OUTFIL2,
INCLUDE=(11,6,BI,GT,X' ø Ñ ',AND,
11,6,BI,LE,X' ø Ê@')
OUTFIL FNAMES=OUTFIL3,
INCLUDE=(11,6,BI,GT,X' ø Ê@',AND,
11,6,BI,LE,X' ø ß@')
OUTFIL FNAMES=OUTFIL4,SAVE
i have one input file and splitting this file into four files based on the above control card.
Back to top
expat Global Moderator Joined: 14 Mar 2007Posts: 8797 Location: Welsh Wales
I believe that you need to use the hexadecimal representation rather than the character representation shown above
example - X'F1F2' is the same as C'12'
Back to top
gcicchet Senior Member Joined: 28 Jul 2006Posts: 1702 Location: Australia
Hi,
as Expat has already explained, you need to convert the 6 byte search to HEX, ie it should be represented by 12 bytes of HEX values.
Gerry
Back to top
P.RAJESH Currently Banned New User Joined: 20 Mar 2008Posts: 54 Location: chennai
Hi Expat/Gerry,
The equivalent valuse for
ø Ñ = 05700008691 like that i gave to equvalent values in card card for other values also and i ran the job but job passing all record into first data set, it is not splitting reords into other data sets.
Now control card shown below,
OPTION COPY
OUTFIL FNAMES=OUTFIL1,
INCLUDE=(11,6,CH,LE,C'05700008691')
OUTFIL FNAMES=OUTFIL2,
INCLUDE=(11,6,CH,GT,C'05700008691',AND,
11,6,CH,LE,C'05700010727')
OUTFIL FNAMES=OUTFIL3,
INCLUDE=(11,6,CH,GT,C'05700010727',AND,
11,6,CH,LE,C'05700013597')
OUTFIL FNAMES=OUTFIL4,SAVE
Is the control card fine or any chagnes needs to be done ?
Back to top
expat Global Moderator Joined: 14 Mar 2007Posts: 8797 Location: Welsh Wales
INCLUDE=(11,6,CH,LE,C'05700008691')
should be
INCLUDE=(11,6,CH,LE,X '05700008691')
Back to top
gcicchet Senior Member Joined: 28 Jul 2006Posts: 1702 Location: Australia
Hi,
it shoud be 12 bytes of hex values and not 11
Gerry
Back to top
expat Global Moderator Joined: 14 Mar 2007Posts: 8797 Location: Welsh Wales
gcicchet wrote:
Hi,
it shoud be 12 bytes of hex values and not 11
Gerry
I should have gone to specsavers
Back to top
gcicchet Senior Member Joined: 28 Jul 2006Posts: 1702 Location: Australia
Hi,
Quote:
I should have gone to specsavers
maybe the big X took up the extra byte .
Gerry
Back to top
P.RAJESH Currently Banned New User Joined: 20 Mar 2008Posts: 54 Location: chennai
Hi Expat,
Job got abended with below message i mentioned in first.
ICE113A E COMPARISON FIELD ERROR
OUTFIL FNAMES=OUTFIL2,
INCLUDE=(11,6,CH,GT,X'05700008691',AND,
11,6,CH,LE,X'05700010727')
Gerry,
I tired with your view at the time all records passed to last file
Back to top
dick scherrer Moderator Emeritus Joined: 23 Nov 2006Posts: 19244 Location: Inside the Matrix
Hello,
Your hex values only show 11 digits. For 6 bytes, you need 12 hex digits.
X'05700008691'
X'05700010727'
Back to top
P.RAJESH Currently Banned New User Joined: 20 Mar 2008Posts: 54 Location: chennai
Sorry, i didn't informed. I gave the 12 hex digits and got the result.
Thank you...
Back to top
dick scherrer Moderator Emeritus Joined: 23 Nov 2006Posts: 19244 Location: Inside the Matrix
Good to hear it is working - thank you for letting us know
d
Back to top
Please enable JavaScript!