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



My project: in an existing RPG III program, that must remain RPG III
(bummer) scan in input field from the display file, and replace any slashes
'/' with dashes '-' before storing, because slashes mess up our EDI
transmission.

Relatively easy to find the location of slashes in RPG III, code snippet
follows (do while loop not shown).

C                     MOVE '12/34/56'RESULT  8
C           RESULT    DSPLY
C           '/'       SCAN RESULT    POS     20
C           POS       IFNE *ZERO
C                     ???                      <--- here I need to change
'/' to '-'
C                     ENDIF

How do I, in RPG III, change a character in the middle of a string?  Easy to
do in RPG IV with any number
of BIFs.  But I can't remember how to do this in RPG III.

Any ideas?

Thanks in advance,

Jim Langston


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.