Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us