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 Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts what is meaning of the number in dcl Martylin PL/I & Assembler 2 Thu Mar 09, 2017 7:18 am
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am


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