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: 7254

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: 6966
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 How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm


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