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
 

 

compare CH - no case sensitive

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

New User


Joined: 04 Mar 2009
Posts: 5
Location: Warsaw

PostPosted: Mon Apr 27, 2009 8:54 pm    Post subject: compare CH - no case sensitive
Reply with quote

Hi,

Is it possible to set include condition for CH field without case sensitivity? Requirement is also not to change data during records filtering in SORT.

I'll tried to do this with using INREC, but I registered that INCLUDE is executed before INREC clause. INREC also changed my output data...
I have no idea how to do this and of course I do not know if such comparission is even possible.

Let's following example show what i need:

As a source I have dataset:
Abcdef
aBcdef
Bvsdjh
ABCrrr
sdhjhfu
abcKDJ

My "incorrect" sort condition is:
INCLUDE COND=(1,3,CH,EQ,C'ABC')

As an output I want get something like this:
Abcdef
aBcdef
ABCrrr
abcKDJ
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Mon Apr 27, 2009 9:33 pm    Post subject:
Reply with quote

Here are two different ways to do this with DFSORT:

Using ALTSEQ and AQ

Code:

//S1   EXEC  PGM=SORT
//SYSOUT    DD  SYSOUT=*
//SORTIN DD *
Abcdef
aBcdef
Bvsdjh
ABCrrr
sdhjhfu
abcKDJ
/*
//SORTOUT DD SYSOUT=*
//SYSIN    DD    *
  OPTION COPY
  ALTSEQ CODE=(81C1,82C2,83C3)
  OUTFIL INCLUDE=(1,3,AQ,EQ,C'ABC')
/*


Using TRAN=LTOU

Code:

//S2    EXEC  PGM=SORT
//SYSOUT    DD  SYSOUT=*
//SORTIN DD *
Abcdef
aBcdef
Bvsdjh
ABCrrr
sdhjhfu
abcKDJ
/*
//SORTOUT DD SYSOUT=*
//SYSIN    DD    *
  OPTION COPY
  INREC OVERLAY=(81:1,3,TRAN=LTOU)
  OUTFIL INCLUDE=(81,3,CH,EQ,C'ABC'),BUILD=(1,80)
/*
Back to top
View user's profile Send private message
cieron

New User


Joined: 04 Mar 2009
Posts: 5
Location: Warsaw

PostPosted: Tue Apr 28, 2009 2:48 pm    Post subject:
Reply with quote

Frank You are great !! Thanks.

The second way is more useful and flexible. I can use also SS in include conditions.
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 member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm
No new posts fuzzy compare Martylin JCL & VSAM 9 Thu Mar 30, 2017 2:45 pm
No new posts VALIDATE NULL VALUE IN DB2 CASE STATE... useit DB2 5 Thu Feb 09, 2017 4:34 pm
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm


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