Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us