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 numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts Repeat Sequence Number Until change i... rahulabvp DFSORT/ICETOOL 6 Thu Mar 29, 2018 12:51 pm
No new posts Merge 2 records sancraig16 SYNCSORT 19 Tue Mar 27, 2018 8:17 pm

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