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 FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm


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