MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SORT CARD

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
arun.chand
Beginner


Joined: 28 Jun 2005
Posts: 4
Topics: 4

PostPosted: Fri Oct 06, 2006 1:51 am    Post subject: SORT CARD Reply with quote

Hi,

Can anyone please help me to deal with the following situation.

I have to sort some records based on a particular field. But I want to exclude the record if that particular field in the record is NOT numeric or Alphabetic. That is if the field has values(#$%&^@!), I want to eliminate that record from the output file. My output file should contain records with numeric or alphabet for that particular field. How to prepare my sort card.

Thx
Arun
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12366
Topics: 75
Location: San Jose

PostPosted: Fri Oct 06, 2006 5:11 am    Post subject: Reply with quote

arun.chand,

Try this


Code:

 OMIT COND=(10,1,SS,EQ,C'!@#$%^&*()')
 SORT FIELDS=(P,M,F)

where p = position of the field to be sorted
      m = length of the field to be sorted
      f = format of the field to be sorted


Hope this helps...

Cheers

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group