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
 

 

Sort Card to remove the records which starts with a number.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Tue Nov 27, 2007 6:49 pm    Post subject: Sort Card to remove the records which starts with a number.
Reply with quote

I want to include those records that start with the Alphabets and to exclude those records that start with numbers.

Here I am using the sort card as

Code:

  OPTION COPY
  INCLUDE=(5,1,CH,EQ,C'A',OR,
         5,1,CH,EQ,C'B',OR,
         5,1,CH,EQ,C'C',OR,
         5,1,CH,EQ,C'D',OR,
         5,1,CH,EQ,C'E',OR,...............
         5,1,CH,EQ,C'Z')


Can anyone suggest alternate for this.

Can I mention all these 26 conditions in a single condition.
Back to top
View user's profile Send private message

shankar.v

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Tue Nov 27, 2007 7:22 pm    Post subject:
Reply with quote

mkk157,

Please check with the following code for your requirement.
Code:
 OPTION COPY
 INCLUDE COND=(5,1,SS,EQ,C'ABCDEFGHIJKLMNOPQRSTUVWXYZ')
Back to top
View user's profile Send private message
shankar.v

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Tue Nov 27, 2007 7:42 pm    Post subject:
Reply with quote

mkk157,

Please check with the following alternative codes for your requirement
Code:
 OPTION COPY                                           
 INCLUDE COND=((5,1,CH,GE,C'A',AND,5,1,CH,LE,C'I'),OR, 
               (5,1,CH,GE,C'J',AND,5,1,CH,LE,C'R'),OR, 
               (5,1,CH,GE,C'S',AND,5,1,CH,LE,C'Z'))     

Code:
 
 OPTION COPY
 OMIT COND=(5,1,SS,EQ,C'1234567890')
Back to top
View user's profile Send private message
mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Tue Nov 27, 2007 7:45 pm    Post subject:
Reply with quote

shankar,

Here the records in the file are starting with Alphabet and numbers.

From those I need to include only those records which starts with Alphabets. i.e. the first character should be the Alphabet.
Back to top
View user's profile Send private message
shankar.v

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Tue Nov 27, 2007 7:47 pm    Post subject:
Reply with quote

Quote:
shankar,

Here the records in the file are starting with Alphabet and numbers.

From those I need to include only those records which starts with Alphabets. i.e. the first character should be the Alphabet.

You can use any one of the before posted codes which has the INCLUDE COND=...
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 Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


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