View previous topic :: View next topic
|
Author |
Message |
selvamsrinivasan85
New User

Joined: 09 Aug 2010 Posts: 33 Location: Chennai
|
|
|
|
Hi all,
I am copying a VB file, in which LRECL=32,756 and BLKSIZE=32,760. One main thing is I have to copy the RDW(first 4 bytes as well).
So the sort card written is
Code: |
SORT FIELDS=COPY
OUTFIL FILES=01, OUTREC=(1:1,4,5:1,4,9:5)
|
Getting error message as
Code: |
WER200A SORTOF01 RECFM=V/VB, LRECL/BLKSIZE INVALID
|
Seems like maximum LRECL for a VB file is 32,756 (4 bytes less than BLKSIZE) and its reached. What to do in this case?.
Am fine with FB file as well. But how to copy RDW bytes, if i convert?.
Any suggestions would be appreciated. |
|
Back to top |
|
 |
Joerg.Findeisen
Senior Member

Joined: 15 Aug 2015 Posts: 1353 Location: Bamberg, Germany
|
|
|
|
Your msg indicates you are using SYNCSORT, post in the right subsection of the forum then. |
|
Back to top |
|
 |
sergeyken
Senior Member

Joined: 29 Apr 2008 Posts: 2159 Location: USA
|
|
|
|
When copying RECFM=VB it makes no sense to include the duplicated RDW into the record body.
You can use either IEBGENER, or SORT, or any other utility - your RDW will be copied as part of VB record.
No need to create a problem from nothing. |
|
Back to top |
|
 |
sergeyken
Senior Member

Joined: 29 Apr 2008 Posts: 2159 Location: USA
|
|
|
|
Joerg.Findeisen wrote: |
Your msg indicates you are using SYNCSORT, post in the right subsection of the forum then. |
Both SYNCSORT, and DFSORT forums must be combined together.
The two utilities are 99.5% compatible. |
|
Back to top |
|
 |
Joerg.Findeisen
Senior Member

Joined: 15 Aug 2015 Posts: 1353 Location: Bamberg, Germany
|
|
|
|
sergeyken wrote: |
Both SYNCSORT, and DFSORT forums must be combined together.
The two utilities are 99.5% compatible. |
To fiddle out what product they might be using? Most of the chaps post w/o msg indicators, so NO from my side. |
|
Back to top |
|
 |
sergeyken
Senior Member

Joined: 29 Apr 2008 Posts: 2159 Location: USA
|
|
|
|
selvamsrinivasan85 wrote: |
Am fine with FB file as well. But how to copy RDW bytes, if i convert?.
Any suggestions would be appreciated. |
Code: |
SORT FIELDS=COPY
OUTFIL VTOF,BUILD=(1,32756)
END |
|
|
Back to top |
|
 |
sergeyken
Senior Member

Joined: 29 Apr 2008 Posts: 2159 Location: USA
|
|
|
|
selvamsrinivasan85 wrote: |
Getting error message as
Code: |
WER200A SORTOF01 RECFM=V/VB, LRECL/BLKSIZE INVALID
|
Seems like maximum LRECL for a VB file is 32,756 (4 bytes less than BLKSIZE) and its reached. What to do in this case?. |
If you are sure your ACTUAL RECORDS are shorter than 32756, you can "cheat" the utility:
Code: |
//SORTIN DD DISP=SHR,DSN=your_input_dsn,
// LRECL=32752 = (32656 - 4), to allow record extension by 4 bytes |
because the LRECL value from DD has priority over the LRECL from VTOC |
|
Back to top |
|
 |
selvamsrinivasan85
New User

Joined: 09 Aug 2010 Posts: 33 Location: Chennai
|
|
|
|
Hi Sergeyken,
Thanks for the suggestion on coding the LRECL on Dataset. I aware that this will definitely work. And yes, input file doesn't contain data till 32,756 bytes.
This file is going to Cloud environment and seems like they are using RDW data as one of the key for VB files(I don't have full info).
Thanks again!.
@ Joerg,
Will check and post the questions on correct forums. thanks for the suggestion. |
|
Back to top |
|
 |
Rohit Umarjikar
Global Moderator

Joined: 21 Sep 2010 Posts: 3077 Location: NYC,USA
|
|
|
|
Moved to the right section .
Also , Did you think of other utilities, which are much faster and simpler to use ? Please try searching ADRDSSU to know more . |
|
Back to top |
|
 |
|