× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi All,

Attached is my file. If you see, all the lines where we have MANBOI needs to
be replaced with GEPRGSDATA.

If we look at the last field, ZIPCODE, the last of the line is MANBOI/BO-.
When i want to replace this, it should be GEPRGSDATA/BO-

However, due to system requirement of maximum 80 columns, it can only be
GEPRGSDAT- and the next line should start with A/BO.

I am unable to replace MANBOI and let it continue from the next line. Thus,
i have to do it manually for all lines.

It is possible that i use a preprocessor like DEFINE or a way where if the
replace has longer characters, it automatically overflows the rest of the
test to the next line ?

Regards
Manish

On Fri, Dec 12, 2008 at 2:00 PM, <Asher613Smith@xxxxxxx> wrote:

Is this the question?...

You have a screen that says something like this:

NAME: ___________ MANBOI: _______________ QUANTITY: ___________

And you want it to be:


NAME: ___________ GEPRGSDTA: _______________ QUANTITY: ___________

If so, I don't think the answers you got so far are going to be helpful. So
first, please clear up for us what is the question. Include a real
example.




In a message dated 12/12/2008 2:52:47 P.M. Jerusalem Standard Time,
jonathan.mason@xxxxxxxxxxxxxxxx writes:

Manish Soni <pesfunk@xxxxxxxxx> wrote :

Something like rename would also help here

On Fri, Dec 12, 2008 at 11:56 AM, manish soni <pesfunk@xxxxxxxxx>

Hi Manish

Not sure I understand exactly what you mean could you post an example of
the code you're trying to replace/change? Is it something in the DDS
you're trying to change, or in the RPG program? If it's in the RPG
program would using /COPY or /INCLUDE copy members help? You would be
able to code the statements once and include them in each source program
automatically at compile time.

All the best

Jonathan


Dear All,

wrote: I am stuck in a big problem. I need to change around 30
display files where the library of fields needs to be changed from
MANBOI to GEPRGSDATA. Now since GEPRGSDATA is bigger than MANBOI, it
is getting overflowed to next line many a times. I have around 50
fields in every display files. It is a massive work to change all of
not helpful.

> them and the C MANBOI GEPRGSDATA at the top is My question is, Is
> write at the top of the program, define MANBOI to GEPRGSDATA ?
>
Thanks for your reply
Manish
>



--
Regards
Manish Soni
--
there a technique in display files where i can just This is the RPG
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





Jonathan Mason
iSeries Consultant
www.astradyne-uk.com


_______________________________________________________
This message was sent using NOCC v1.14 webmail software
_______________________________________________________




--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



**************Make your life easier with all your friends, email, and
favorite sites in one place. Try it now.
(
http://www.aol.com/?optin=new-dp&icid=aolcom40vanity&ncid=emlcntaolcom00000010
)
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




Columns . . . : 1 80 Browse GEIDPRGSRC/QSCNSRC
SEU==> BOICHG4
FMT DP .....AAN01N02N03T.Name++++++RLen++TDpBLinPosFunctions+++++++++++++++++++++++++++
0001.05 A 9 3'PROVINC' 080703
0001.06 A COLOR(YLW) 080703
0001.07 A 9 20'ZIPCODE' 080703
0001.08 A COLOR(YLW) 080703
0001.09 A 9 37'NAZIONE' 080703
0001.10 A COLOR(YLW) 080703
0001.11 A CITY R O 7 11REFFLD(BOIANCENSR/CITY MANBOI/BOIAN- 080703
0001.12 A CENSI) 080703
0001.13 A SAE R O 8 7REFFLD(BOIANCENSR/SAE MANBOI/BOIANC- 080703
0001.14 A ENSI) 080703
0001.15 A 92 DSPATR(BL) 080703
0001.16 A 92 COLOR(RED) 080703
0001.17 A RAE R O 8 16REFFLD(BOIANCENSR/RAE MANBOI/BOIANC- 080703
0001.18 A ENSI) 080703
0001.19 A 91 COLOR(RED) 080703
0001.20 A 91 DSPATR(BL) 080703
0001.21 A NAZIONE R O 9 45REFFLD(BOIANCENSR/NAZIONE MANBOI/BO- 080703
0001.22 A IANCENSI) 080703
0001.23 A ZIPCODE R O 9 28REFFLD(BOIANCENSR/ZIPCODE MANBOI/BO- 080703
0001.24 A IANCENSI) 080703

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.