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 condition beyond 32752

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


Joined: 21 Jun 2014
Posts: 259
Topics: 54

PostPosted: Wed Apr 25, 2018 10:39 am    Post subject: SORT condition beyond 32752 Reply with quote

Hi,

I am trying to write a sort for comparing two files of record length 17200.

F1 - LREC 17200
F2 - LREC 17200.

The requirement is to extract records that are updated or added.

Code:

JOINKEYS FILE=F1,FIELDS=(20,25,A)           
JOINKEYS FILE=F2,FIELDS=(20,25,A)           
JOIN UNPAIRED,F1,F2                         
REFORMAT FIELDS=(F1:1,17200,F2:1,17200,?)   
OPTION COPY                                 

OUTFIL INCLUDE((34401,1,CH,EQ,C'B',AND,           
               (1,250,BI,NE,17201,250,BI,OR,     
               251,250,BI,NE,17451,250,BI,OR,     
               501,250,BI,NE,17701,250,BI,OR,     
               751,250,BI,NE,17951,250,BI,OR,     
               1001,250,BI,NE,18201,250,BI,OR,   
               1251,250,BI,NE,18451,250,BI,OR,   
               1501,250,BI,NE,18701,250,BI,OR,   
               1751,250,BI,NE,18951,250,BI,OR,   
               2001,250,BI,NE,19201,250,BI,OR,   
               2251,250,BI,NE,19451,250,BI,OR,   
               2501,250,BI,NE,19701,250,BI,OR,   
..
...
...
..
               15501,250,BI,NE,32701,250,BI,OR, 
               15751,250,BI,NE,32951,250,BI,OR, 
               16001,250,BI,NE,33201,250,BI,OR, 
               16251,250,BI,NE,33451,250,BI,OR, 
               16501,250,BI,NE,33701,250,BI,OR, 
               16751,250,BI,NE,33951,250,BI,OR, 
               17001,200,BI,NE,34201,200,BI)),   
               OR,34401,1,CH,EQ,C'2'),BUILD=(17201,17200)


It appears we cannot handle condition beyond 32752 bytes.

Please advise.

Thanks
Magesh
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Apr 25, 2018 11:19 am    Post subject: Reply with quote

Magesh_J,

The maximum limit for LRECL is 1 to 32,760 for non-VSAM data sets. You are creating 17200+17200 = 34,400 which exceeds that limit.

Ideally I would write a simple COBOL program for matching and finding out the differences.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Magesh_J
Intermediate


Joined: 21 Jun 2014
Posts: 259
Topics: 54

PostPosted: Tue May 01, 2018 11:57 am    Post subject: Reply with quote

Thanks Kolusu, I wrote Cobol program

Regards,
Magesh
Back to top
View user's profile Send private message
t-bonham@scc.net
Supermod


Joined: 18 Oct 2012
Posts: 30
Topics: 0
Location: Minneapolis, MN

PostPosted: Tue May 01, 2018 3:44 pm    Post subject: Reply with quote

Or just use the Compare program built into ISPF. That can be run in batch mode.

While Sort can do this, if the task is compares, it's probably easier to start with a utility designed for that task.
Back to top
View user's profile Send private message Send e-mail AIM Address
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