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
 
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 Query to compare 2 values of 1 column... Poha Eater DB2 13 Fri Mar 09, 2018 10:45 am
No new posts Compare two PS files using ICE TOOL f... SENTHIL MURUGAAN DFSORT/ICETOOL 5 Sun Dec 24, 2017 1:26 pm
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 3 Fri Nov 17, 2017 9:49 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

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