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



One of our programmers brought me a program created under V5R1 needing a
seemingly simple change.

The program includes this data structure:
D Stat            DS                  Occurs( 20 ) Qualified
D  WeekDay                       3a   Inz                   
D  Scanned                       7p 0 Inz                   
D  Ques                          7p 0 Inz Dim( 11 )         
D  Funded                        7p 0 Inz           

After performing the necessary calculations the contents of Ques is printed
as follows:
O          E            DETAIL      1  1      
O                       RptDate             10
O                       Stat.WeekDay        16
O                       Stat.Scanned  Z     26
O                       Stat.Ques( 1 )Z     35
O                       Stat.Ques( 2 )Z     43
O                       Stat.Ques( 3 )Z     51
O                       Stat.Ques( 4 )Z     59
O                       Stat.Ques( 5 )Z     67
O                       Stat.Ques( 6 )Z     75
O                       Stat.Ques( 7 )Z     83
O                       Stat.Ques( 8 )Z     91
O                       Stat.Ques( 9 )Z     99
O                       Stat.Ques( 10)Z    107
O                       Stat.Ques( 11)Z    115
O                       Stat.Funded   Z    123       

The issue is the program won't compile.  The compiler issues RNF6051 for
each output spec using Stat.Ques.  The program was created under V5R1 and
currently runs in production.  If I change the target release to V5R1 it
compiles.  Trying to compile at V5R2 generates the errors.  Reading through
the RPG manual for the data structure changes hasn't given me any insight.  

Does anyone have any ideas what we're doing wrong?

TIA,

Rick

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.