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

Replacing characters in a record longer than 255 bytes


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mariraj

New User


Joined: 09 Jul 2007
Posts: 59
Location: Chennai

PostPosted: Thu Oct 13, 2011 12:29 pm
Reply with quote

I am looking to replace
Code:
,
with
Code:
","
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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Oct 13, 2011 12:31 pm
Reply with quote

Do you not think that posting your code may give us some clues
Back to top
View user's profile Send private message
Mariraj

New User


Joined: 09 Jul 2007
Posts: 59
Location: Chennai

PostPosted: Thu Oct 13, 2011 1:33 pm
Reply with quote

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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Oct 13, 2011 2:10 pm
Reply with quote

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

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Oct 13, 2011 3:08 pm
Reply with quote

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

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Oct 18, 2011 4:42 pm
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
Search our Forums:

Back to Top