× 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.



Manish

My other post needs to be modified, since you have the names split between lines, and this will be a little harder.

OK, the REFFLDs all have the same record format - you can remove that completely. (BOIANCENSR/ is the value I speak of.)
They also all have the same file - you can remove that completely, as well, if you have a REF keyword at file level that names that file.
MANBOI/BOIAN- followed by CENSI
MANBOI/BOI- followed by ANCENSI

This is a situation where macros can be very helpful.

Open a DSPF source member for editing, press F14, put REFFLD( in "Find", then start to record a macro. Then press F16.

These are the steps that will be in the macro -

- F4
- 2 Newlines (to get to the Keywords field)
- 11 deletes (to remove the record format and forward slash)
Now pause recording and move the cursor to the blank right after the field name, then resume recording.
- Field Exit to remove the rest
- Enter
- Field Exit to clear
- F16 to find the next REFFLD(

Keep going
Vern

manish soni wrote:
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.





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.