View previous topic :: View next topic
|
Author |
Message |
Mariraj
New User
Joined: 09 Jul 2007 Posts: 59 Location: Chennai
|
|
|
|
I am looking to replace
with
in a file using Syncsort. The input file is a VB file with LRECL = 255. The output file will be FB with LRECL = 4000.
I tried using FINDREP. But it failed with the following error message
Quote: |
INREC FIND/REPLACE OVERRUN OF 255 BYTE RECORD LENGTH
|
. When I referred the Syncsort manual, it clearly says that neither the input nor the output can be longer than 255 bytes.
Is there any way to acheive this in Syncsort. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Do you not think that posting your code may give us some clues |
|
Back to top |
|
|
Mariraj
New User
Joined: 09 Jul 2007 Posts: 59 Location: Chennai
|
|
|
|
PFB the code I used.
Code: |
//STEP1 EXEC PGM=SORT
//STATOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=XXXX,DISP=SHR
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY,STOPAFT=10
OUTFIL FINDREP=(IN=C',',OUT=C'","')
/*
|
|
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Do you think there might be a way to limit the length of data searched at one time? Like telling it the length? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Quote: |
The input file is a VB file with LRECL = 255. The output file will be FB with LRECL = 4000. |
well, with the silly 'PFB the code I used' that you provided
one would be lead to suggest that
PUT THE FINDREP IN THE INREC STATEMENT
since you only have a 255 input record.
if you want help, show your failing control cards.
the crap that you posted as an example
will not fail................ |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
The code you show is not what you've asked for in your first post. This
Code: |
//SORTOUT DD SYSOUT=* |
will never make your SORTOUT of LRECL=4000, as you state in your first post:
Quote: |
The input file is a VB file with LRECL = 255. The output file will be FB with LRECL = 4000. |
Along with what had been asked for also post a scrap from the manaul whre you find this:
Quote: |
When I referred the Syncsort manual, it clearly says that neither the input nor the output can be longer than 255 bytes. |
|
|
Back to top |
|
|
|