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 

File comparison
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Tue Jan 27, 2009 11:07 am    Post subject: Please explain me Reply with quote

Frank, Would you please explain me this style of coding

Quote:

HEADER1=(' INCLUDE COND=(1,1,CH,NE,1,1,CH,OR,'),
BUILD=(C' 19,6,CH,EQ,C''',1,6,C''',OR,',80:X),
TRAILER1=(' 1,1,CH,NE,1,1,CH)')


I have seen and used "INCLUDE COND=(1,1,CH,NE,C'1') or similar kind of things. But, I have not understood what you have used.

Would you please explain.

Thanks.
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Tue Jan 27, 2009 11:18 am    Post subject: Reply with quote

I'm just using a trick to allow generation of the control statements. For each input line, the BUILD operand generates a comparison of the form:

Code:

   19,6,CH,EQ,C'cccccc',OR,


In order to have a valid INCLUDE statement using those comparisons, we need to have:

Code:

  INCLUDE COND=(....,       <------- starting line
    build_comparison1,
    build_comparison2,
    ...
    ...)                    <------- ending line


Note that we need to surround the build_comparisons with a starting and ending line for correct syntax.

I'm using HEADER1 to generate:

Code:

   INCLUDE COND=(1,1,CH,NE,11,CH,OR,


and TRAILER1 to generate:

Code:

    1,1,CH,NE,1,1,CH)


1,1,CH,NE,1,1,CH is essentially a NOP ... it can never be true so it doesn't include any records.

We could get fancier and not use the NOPs, but that would require more coding to identify the first and last build lines. The use of NOPs is a simpler solution.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Tue Jan 27, 2009 11:42 am    Post subject: Reply with quote

wow...it is really wonderful information to know this piece of info.

Thank you.
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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