View previous topic :: View next topic
|
Author |
Message |
swapnam
New User
Joined: 30 Sep 2008 Posts: 17 Location: City
|
|
|
|
No..please ignore the first line..its the line number that shows in the file
only the last 2 lines represent blank like..hope iam correct
so its
Code: |
0444444444444444444444444...
C000000000000000000000000...
|
|
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Quote: |
what are psuedo-blank bytes |
What I meant is those bytes which 'look' blank, but has some data in non-displayable format or NE X'40' . I m not sure whether you want to omit these records also. |
|
Back to top |
|
|
swapnam
New User
Joined: 30 Sep 2008 Posts: 17 Location: City
|
|
|
|
Hi Arun,
Yes..i just want to omit all records which look blanks/which are blank.
Thanks |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
i just want to omit all records which look blanks |
Then you must define them. . . There is no syntax for "looks like blank". There are other values that "don't quite look like blank" but are not a usable letter/number/special character that you need to consider.
You can either specify which value(s) to include or which to exclude.
"Real" blanks are easy - they are x'40'. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
swapnam,
If you want to omit records that have X'0C' in position 1 and blanks in positions 2-133, you can use this OMIT statement:
Code: |
OMIT COND=(1,1,BI,EQ,X'0C',AND,2,132,CH,EQ,C' ')
|
If that's not what you want to do, then you need to give a better explanation of what you want to do. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
just a reminder,
since the TS is talking about a record length of 133,
probably ( or rather, certainly ) the recfm is FBA/FBM
so the first byte will contain the printer control char,
to check for blank lines the test should start at column 2 for 132 bytes |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
That may well be true.
I don't think 0C would be an FBA control character. It could be an FBM control character - I couldn't find 0C listed in my yellow card, but it certainly could be a machine code (I found 0A and 0B).
In which case:
Code: |
OMIT COND=(2,132,CH,EQ,C' ')
|
should work. |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
Quote: |
It is the hex value of Positive sign. |
Quote: |
think that you are pretty well mistaken in your statement that '0C'X equates to charachter +
|
I would think that the X'0C' is a packed decimal positive zero?
Garry. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Well, to me a positive sign is + and in my book thats '4E'X. |
|
Back to top |
|
|
|