Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Replacing characters in a record longer than 255 bytes

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Replacing characters in a record longer than 255 bytes
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: 8593
Location: Back in jolly old England

PostPosted: Thu Oct 13, 2011 12:31 pm    Post subject:
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Thu Oct 13, 2011 2:10 pm    Post subject: Reply to: Replacing characters in a record longer than 255 b
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: 6968
Location: porcelain throne

PostPosted: Thu Oct 13, 2011 3:08 pm    Post subject:
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

Senior Member


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

PostPosted: Tue Oct 18, 2011 4:42 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts replacing junk with hyphen Nitin32 DFSORT/ICETOOL 10 Fri Jun 02, 2017 7:47 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us