IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

DFSORT to exclude the records having 0's i nthe first digit


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
prasanth_urs

New User


Joined: 04 Dec 2006
Posts: 44
Location: Pune,India

PostPosted: Tue Feb 27, 2007 1:33 pm
Reply with quote

Hi all,

Please help me in this issue.

I need to exclude records of 10 digit whose first digit is zero using DFSORT.

for eg:-
these are the records

9985632151
0321654987
7412365408

Of these i need to remove the second record.(starting with 0)

Can anyone please tell me the syntax to be used in the DFSORT?

Many thanks in advance. icon_biggrin.gif
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Tue Feb 27, 2007 1:56 pm
Reply with quote

HI There,

U can use following sort card

Code:

  SORT FIELDS=COPY           
  OMIT COND=(1,1,CH,EQ,C'0')
Back to top
View user's profile Send private message
prasanth_urs

New User


Joined: 04 Dec 2006
Posts: 44
Location: Pune,India

PostPosted: Tue Feb 27, 2007 2:50 pm
Reply with quote

Many Thanks Ekta!!!! icon_lol.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
Search our Forums:

Back to Top