
08-20-2008
|
|
Registered User
|
|
|
Join Date: Feb 2008
Posts: 22
|
|
|
Vi - "The replacement pattern is too long"
Hi,
I am trying to replace a value in a script with another value. I am performing a vi command from another script.
Code:
vi - ${conf_path}/CANCEL_CD_PART2.txt<<!
:%s/RANGE/${btch_range}/g
:wq
!
'RANGE' is the current value that the parm in the other script has (PARM1=RANGE), along with some other things. I want to substitute it with the value in $btch_range which is
Quote:
145857150104000,145857160204000,145857170104000,145857180204000,145857190204000,145857220104000,1458 57230104000,1458572401
04000,145857250104000,145857260104000,145857290104000,145857300204000,145857310104000,14585801020400 0,145858020204000,14585805010200
0,145858060104000,145858070204000,145858080104000,145858090204000,145858120104000,145858130104000,14 5858140204000,145858150304000
|
The values in $btch_range cannot be changed since those are batch numbers generated by the system. When I try to execute the vi command shown above, I get the following error:
Quote:
|
ex: 0602-075 The replacement pattern is too long. The limit is 256 characters.
|
Any ideas?
Thanks!
|