View previous topic :: View next topic
Author
Message
Iratxe New User Joined: 21 Feb 2006Posts: 24
Hello,
Merry Christmas and Happy New Year!!
I?ve got a problem. I?ve a VB file, where beginnig from position 5 and with 10 of length there?s a field wich seems to be BI, and I want to see it.
I?m doing this sort:
Code:
OPTION COPY
OUTFIL INCLUDE=((5,10,BI,EQ,0000000140,OR,
5,10,BI,EQ,0215283144,OR,
5,10,BI,EQ,0000000152,OR,
5,10,BI,EQ,0222222232)),FNAMES=OUT1
the sortin file is like this:
Code:
? * 0Q 2004-02-040Q 9999-01-01
? * 0R 2004-03-310R 9999-01-01
? * 0T 2004-03-310T 9999-01-01
? * 1G 2004-06-011G 9999-01-01
? 0Q 2004-02-040Q 9999-01-01
? 0R 2004-04-060R 9999-01-01
? 1E 2004-06-011E 9999-01-01
and I obtain this:
Code:
? * 0Q 2004-02-040Q 9999-01-01
? * 0R 2004-03-310R 9999-01-01
? * 0T 2004-03-310T 9999-01-01
? * 1G 2004-06-011G 9999-01-01
? 0Q 2004-02-040Q 9999-01-01
? 0R 2004-04-060R 9999-01-01
? 1E 2004-06-011E 9999-01-01
How can I see what this is " ? "?
Iratxe
Back to top
William Thompson Global Moderator Joined: 18 Nov 2006Posts: 3156 Location: Tucson AZ
Turn on HEX?
Back to top
Iratxe New User Joined: 21 Feb 2006Posts: 24
Hello,
for that I?m using this:
OUTREC FIELDS=(1,4,5,10,HEX,16,26)
and I obtain:
00002E02CD0100000000* 0Q 2004-02-040Q 9
00002E02CD0100000000* 0R 2004-03-310R 9
00002E02CD0100000000* 0T 2004-03-310T 9
00002E02CD0100000000* 1G 2004-06-011G 9
00002E02CD0100000000 0Q 2004-02-040Q 9
00002E02CD0100000000 0R 2004-04-060R 9
00002E02CD0100000000 1E 2004-06-011E 9
00002E02CD0100000000 1G 2004-06-011G 9
00002E02CD0100000000 0Q 2004-02-040Q 9
00002E02CD0100000000 0R 2004-03-310R 9
00002E02CD0100000000 0T 2004-03-310T 9
it doesn't seem to be easy to read. What do you think?
Back to top
William Thompson Global Moderator Joined: 18 Nov 2006Posts: 3156 Location: Tucson AZ
OK, I was thinking a TSO browse with HEX, but that kinda does look binary....Maybe an address?
Back to top
Iratxe New User Joined: 21 Feb 2006Posts: 24
What do you want to mean with that, the kind of field?
Is this what your looking for?
COD_CONTRATO HCTB719 DB2H 1 DECIMAL 10
COD_POLIZA HCTB719 DB2H 2 SMALLINT 2
TIP_ACCION_VENTA HCTB719 DB2H 3 CHAR 2
Back to top
Iratxe New User Joined: 21 Feb 2006Posts: 24
The mail before is what sould be, but in the table it?s a
25 RTGCC-COD-CONTRATO PIC S9(10)
VALUE ZERO
COMPUTATIONAL-3.
Back to top
dick scherrer Moderator Emeritus Joined: 23 Nov 2006Posts: 19244 Location: Inside the Matrix
Hello,
Quote:
00002E02CD0100000000* 0Q 2004-02-040Q 9
00002E02CD0100000000* 0R 2004-03-310R 9
00002E02CD0100000000* 0T 2004-03-310T 9
00002E02CD0100000000* 1G 2004-06-011G 9
00002E02CD0100000000 0Q 2004-02-040Q 9
00002E02CD0100000000 0R 2004-04-060R 9
00002E02CD0100000000 1E 2004-06-011E 9
00002E02CD0100000000 1G 2004-06-011G 9
00002E02CD0100000000 0Q 2004-02-040Q 9
00002E02CD0100000000 0R 2004-03-310R 9
00002E02CD0100000000 0T 2004-03-310T 9
it doesn't seem to be easy to read. What do you think?
The first "20" appear to be the hex values for 10 characters, shown side-by-side (over/under is easier on the eye. . .)
Back to top
Frank Yaeger DFSORT Developer Joined: 15 Feb 2005Posts: 7129 Location: San Jose, CA
You used:
Code:
OUTREC FIELDS=(1,4,5,10,HEX,16,26)
1,4 is the RDW. DFSORT doesn't display it unless you use 1,4,1,4,HEX.
So the first thing in the output is 5,10,HEX which is as follows for the first record:
Code:
00002E02CD0100000000
and appears to be the same for every record. This is a hex value of X'00002E02CD0100000000'.
A more readable way to display this might be:
Code:
OUTREC FIELDS=(1,4,1,4,HEX,C'|',5,10,HEX,C'|',16,26)
In your INCLUDE statement, you're comparing this 10-byte BI value to a decimal number. X'00002E02CD0100000000' is the decimal number 3315437679876767744 which would not satisfy the INCLUDE conditions.
Back to top
Iratxe New User Joined: 21 Feb 2006Posts: 24
Hello,
I'm sorry about the delay for answering. The fact?s that seems the original file contains binarys.
Can I transform binary to decimal?
Thanks.
Iratxe
Back to top
Frank Yaeger DFSORT Developer Joined: 15 Feb 2005Posts: 7129 Location: San Jose, CA
Quote:
Can I transform binary to decimal?
Yes. You can use something like:
5,10,BI,M11
or
5,10,BI,TO=ZD
Back to top
Please enable JavaScript!