Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to identify a blank record in a dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject:
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 Moderator


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

PostPosted: Mon Oct 30, 2006 9:44 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us