Delete blank reocrds.

SyncSort's Sort Product, SyncTool for z/OS, SYNCINIT and SYNCLIST.
Post Reply
Bethany
Registered Member
Posts: 10
Joined: Sat Dec 28, 2013 2:57 pm

Delete blank reocrds.

Post by Bethany »

Hi,

I've got a file which has some blank records as shown below:

Code: Select all

aaaaaaaa bbbbbbbb

ccccccc 
ddddddddd

eeeeeeeeeeeee
ffffff
If input is (rec. length = 80). How to delete all blank records in a file?
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: Delete blank reocrds.

Post by zprogrammer »

Delete blank records is also Omitting blank records from Copy

Hence try this

Code: Select all

 SORT FIELDS=COPY
 OMIT COND=(1,80,CH,EQ,C' ')
zprogrammer
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “SyncSort, SyncTool, SyncGener.”