IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JCL - Omit blank records in a file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
swapnam

New User


Joined: 30 Sep 2008
Posts: 17
Location: City

PostPosted: Thu Oct 16, 2008 12:13 pm
Reply with quote

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
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Thu Oct 16, 2008 2:02 pm
Reply with quote

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
View user's profile Send private message
swapnam

New User


Joined: 30 Sep 2008
Posts: 17
Location: City

PostPosted: Thu Oct 16, 2008 2:17 pm
Reply with quote

Hi Arun,

Yes..i just want to omit all records which look blanks/which are blank.


Thanks
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Oct 16, 2008 7:29 pm
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Thu Oct 16, 2008 11:05 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Oct 16, 2008 11:39 pm
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Thu Oct 16, 2008 11:47 pm
Reply with quote

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
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Fri Oct 17, 2008 12:08 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Oct 17, 2008 12:40 am
Reply with quote

Well, to me a positive sign is + and in my book thats '4E'X.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top