IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

VB to VB copy - Full length reached


IBM Mainframe Forums -> SYNCSORT
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
selvamsrinivasan85

New User


Joined: 09 Aug 2010
Posts: 31
Location: Chennai

PostPosted: Wed Dec 06, 2023 8:10 pm
Reply with quote

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
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1249
Location: Bamberg, Germany

PostPosted: Wed Dec 06, 2023 9:58 pm
Reply with quote

Your msg indicates you are using SYNCSORT, post in the right subsection of the forum then.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2021
Location: USA

PostPosted: Wed Dec 06, 2023 10:08 pm
Reply with quote

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
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2021
Location: USA

PostPosted: Wed Dec 06, 2023 10:10 pm
Reply with quote

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
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1249
Location: Bamberg, Germany

PostPosted: Wed Dec 06, 2023 10:45 pm
Reply with quote

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
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2021
Location: USA

PostPosted: Wed Dec 06, 2023 11:28 pm
Reply with quote

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
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2021
Location: USA

PostPosted: Fri Dec 08, 2023 6:46 pm
Reply with quote

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
View user's profile Send private message
selvamsrinivasan85

New User


Joined: 09 Aug 2010
Posts: 31
Location: Chennai

PostPosted: Fri Dec 08, 2023 7:27 pm
Reply with quote

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
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Fri Dec 08, 2023 9:30 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> SYNCSORT

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
Search our Forums:

Back to Top