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

How to identify a blank record in a dataset


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
hariavinash

New User


Joined: 04 Jan 2006
Posts: 64

PostPosted: Mon Oct 30, 2006 7:44 pm
Reply with quote

use X'40' (for spaces) in the offset check.
if its low/high values use equivalent hexa value.
eg: -
SORT FIELDS=COPY
INCLUDE COND=(10,1,CH,EQ,X'40')
END

cheers
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: Mon Oct 30, 2006 9:44 pm
Reply with quote

Quote:
I want to know how to identify a Blank record in a dataset using DFSORT.


It depends what you mean by "identify". If you want to remove blank records from the data set, you can use an INCLUDE statement like this where n is the LRECL. Substitute a blank for b:

Code:

   INCLUDE COND=(1,n,CH,EQ,C'b')


C'b' is (one blank) is padded out to n blanks for the comparison.

If you want to do something else, you need to explain in more detail what you want to do.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
Search our Forums:

Back to Top