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 

Comparing different record length files

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
anandss_75
Beginner


Joined: 07 Aug 2007
Posts: 9
Topics: 3

PostPosted: Fri Oct 19, 2007 8:35 am    Post subject: Comparing different record length files Reply with quote

Hello All,
I have the following requirement.
1) I have two files that need to be matched on a particular field X in File 1 with another field Y in the file 2
2) The record lengths of these files are different
3) The field X is of BINARY datatype in file 1 and is 4 bytes in length (declared as s9(9) comp). It starts in position offset 1 in the file.

4) The field Y is numeric in file 2 and starts in offset 2 in the file. The size of the field is 10 bytes.

My jcl using icetool looks as below

File IN1 is of 223 bytes in length. The field to be matched starts at position 1 and the data type is Binary (S9(9) COMP)

File IN2 is of 133 bytes in length. The field to be matched starts at position 2 and the data type is Numeric 9(10).


//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN1 DD DSN=VSISNAG.SORT.FPEUNLOD.OUTPUT,DISP=SHR
//IN2 DD DSN=VSISNAG.SORT.INPUT2,DISP=SHR
//T1 DD DSN=&&T1,UNIT=SYSDA,SPACE=(CYL,(5,5)),DISP=(MOD,PASS)
//OUT DD DSN=VSISNAG.SORT.OUTPUT,DISP=OLD
//TOOLIN DD *
COPY FROM(IN1) TO(T1) USING(CP02)
COPY FROM(IN2) TO(T1) USING(CP01)
SELECT FROM(T1) TO(OUT) ON(1,4,BI) ALLDUPS USING(CP03)
/*
//CP01CNTL DD *
OUTREC BUILD=(2,10,ZD,TO=BI,LENGTH=4,224:C'1')
//*
//CP02CNTL DD *
OUTREC OVERLAY=(224:C'2')
//*
//CP03CNTL DD *
OUTFIL FNAMES=OUT,INCLUDE=(224,1,CH,EQ,C'2'),BUILD=(1,223)
//*


When i Submitted the job, i got the following error message
in the TOOLMSG dd name

SELECT FROM(T1) TO(OUT) ON(1,4,BI) ALLDUPS USING(CP03)
ICE606I 0 DFSORT CALL 0003 FOR SORT FROM T1 TO OUT USING CP03CNTL TE
ICE602I 0 OPERATION RETURN CODE: 16


In the DFMSG dd name i got the following messages
ICE201I E RECORD TYPE IS F - DATA STARTS IN POSITION 1
ICE027A 9 END OF OUT FIELD BEYOND MAXIMUM RECORD LENGTH
ICE751I 0 C5-K26318 C6-K90007 C7-K90000 C8-K23476 E4-K90007 E7-K24705
ICE052I 3 END OF DFSORT


Please help me in resolving this issue.

Thanks
Anand
Back to top
View user's profile Send private message
krisprems
Beginner


Joined: 13 Dec 2006
Posts: 101
Topics: 4
Location: india

PostPosted: Fri Oct 19, 2007 9:13 am    Post subject: Reply with quote

anandss_75
Quote:

VSISNAG.SORT.OUTPUT,DISP=OLD

Check the LRECL of this O/p file.
_________________
cHEERs
krisprems
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


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

PostPosted: Fri Oct 19, 2007 10:29 am    Post subject: Reply with quote

The usual reason for the ICE027A in this situation is that your site has changed the default for the SOLRF option from YES to NO. Try adding this to your job and see if the ICE027A goes away:

Code:

//DFSPARM DD *
   OPTION SOLRF
/*


If that doesn't work, then post all of your //TOOLMSG and //DFSMSG messages.
_________________
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
anandss_75
Beginner


Joined: 07 Aug 2007
Posts: 9
Topics: 3

PostPosted: Mon Oct 22, 2007 3:12 am    Post subject: Reply with quote

Frank,
Thanks. That worked like a charm.


Thanks
Anand
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities 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