Delete blank reocrds.

SyncSort's Sort Product, SyncTool for z/OS, SYNCINIT and SYNCLIST.
Previous topicNext topic

Topic Author
Bethany
Registered Member
Posts: 10
Joined: Sat Dec 28, 2013 2:57 pm

Delete blank reocrds.

Post by Bethany » Wed Jul 30, 2014 12:08 pm

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: 605
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars
Zodiac: Libra

Re: Delete blank reocrds.

Post by zprogrammer » Wed Jul 30, 2014 6:54 pm

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

Previous topicNext topic

Return to “SyncSort, SyncTool, SyncGener.”