View previous topic :: View next topic |
Author |
Message |
newcobol Beginner
Joined: 20 Apr 2006 Posts: 88 Topics: 22
|
Posted: Wed Apr 22, 2015 11:48 am Post subject: Can I Sort with 2 different LRECL input files |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Wed Apr 22, 2015 12:01 pm Post subject: |
|
|
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 |
|
|
newcobol Beginner
Joined: 20 Apr 2006 Posts: 88 Topics: 22
|
Posted: Wed Apr 22, 2015 12:09 pm Post subject: |
|
|
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 |
|
|
newcobol Beginner
Joined: 20 Apr 2006 Posts: 88 Topics: 22
|
Posted: Wed Apr 22, 2015 12:12 pm Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Wed Apr 22, 2015 12:43 pm Post subject: |
|
|
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 |
|
|
newcobol Beginner
Joined: 20 Apr 2006 Posts: 88 Topics: 22
|
Posted: Wed Apr 22, 2015 12:49 pm Post subject: |
|
|
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 |
|
|
|
|