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


  • Subject: Re: convert RPG IV code to RPG III code
  • From: Scott Klement <klemscot@xxxxxxxxxxxx>
  • Date: Fri, 23 Mar 2001 17:35:08 -0600 (CST)



On Fri, 23 Mar 2001, Ray, Adam wrote:

> This isn't a big deal, because I can program around it. But I was wondering
> how to code the following in RPG III.
> 
> D                 DS                                    
> D cptds                         90                      
> D  cptfields              1     90                      
> D  cptarray                      9    OVERLAY(cptfields)
> D                                     DIM(10)           
> D  cpt01                  1      9                      
> D  cpt02                 10     18                      
> D  cpt03                 19     27                      
> D  cpt04                 28     36                      
> D  cpt05                 37     45                      
> D  cpt06                 46     54                      
> D  cpt07                 55     63                      
> D  cpt08                 64     72                      
> D  cpt09                 73     81                      
> D  cpt10                 82     90

I believe this will work:

      E                    CPTARR     10  9
      ICPTDS       DS                               
      I                                        1  90 CPTFLD
      I                                        1  90 CPTARR
      I                                        1   9 CPT01
      I                                       10  18 CPT02
      I                                       19  27 CPT03
      I                                       28  36 CPT04
      I                                       37  45 CPT05
      I                                       46  54 CPT06
      I                                       55  63 CPT07
      I                                       64  72 CPT08
      I                                       73  81 CPT09
      I                                       82  90 CPT10


> 
> Is there a tool that will convert RPG IV code to RPG III code? Kind of like
> CVTRPGSRC, only backwards.
> 
> Thanks,
> Adam
> 

Not that I know of.  There are features in RPG IV that can't be translated
to RPG III.   RPG IV is a superset of RPG III.

I'm also not sure why anyone would EVER want to convert RPG IV code to
RPG III.   

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.