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 

Can I Sort with 2 different LRECL input files

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


Joined: 20 Apr 2006
Posts: 88
Topics: 22

PostPosted: Wed Apr 22, 2015 11:48 am    Post subject: Can I Sort with 2 different LRECL input files Reply with quote

i have a sort currently with the same size input files . it sortsums into one file. one of the input files i am changing so that it has 2 new fields on it and is 26 bytes longer. i will obviously make the sortout 26 bytes longer. will the sort handle this?
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 22, 2015 12:01 pm    Post subject: Reply with quote

newcobol,

What is the RECFM of the input files? If the input files are of RECFM=V , you are fine, but if the RECFM=F, how are you planning to code the input files as input to SORT?

You do realize that you cannot concatenate different LRECL FB files?
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
newcobol
Beginner


Joined: 20 Apr 2006
Posts: 88
Topics: 22

PostPosted: Wed Apr 22, 2015 12:09 pm    Post subject: Reply with quote

they are both fb. if i can't concatenate them with different sizes, that answers my question. plan b would be to just make the other file longer in the in dcb statement so it would match the first changed file when it went into the sort. this second file comes from a cobol program. i could just make the fd out longer(307). would this work going thru the sort?
Back to top
View user's profile Send private message
newcobol
Beginner


Joined: 20 Apr 2006
Posts: 88
Topics: 22

PostPosted: Wed Apr 22, 2015 12:12 pm    Post subject: Reply with quote

fyi, the 2 extra fields at the end of the changed file are not part of the fields used in the sortsum
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 22, 2015 12:43 pm    Post subject: Reply with quote

newcobol wrote:
they are both fb. if i can't concatenate them with different sizes, that answers my question. plan b would be to just make the other file longer in the in dcb statement so it would match the first changed file when it went into the sort. this second file comes from a cobol program. i could just make the fd out longer(307). would this work going thru the sort?


newcobol,

Your Plan b isn't going to work either. You cannot just override the LRECL on the shorter file and concatenate with Longer file. Create both files with an LRECL of 307.

newcobol wrote:
fyi, the 2 extra fields at the end of the changed file are not part of the fields used in the sortsum


It doesn't matter if the extra fields are part of the sortsum or not, you just cannot sort 2 different LRECL files in the same step.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
newcobol
Beginner


Joined: 20 Apr 2006
Posts: 88
Topics: 22

PostPosted: Wed Apr 22, 2015 12:49 pm    Post subject: Reply with quote

plan b was to make both files 307, yes. the last 26 bytes of one of the files(the one without the extra 2 fields) will just be spaces
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