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



I'm guessing it's the SFLEND(*MORE) keyword missing. 
When you use *MORE it puts More... after the final subfile record. But if
you do not use *MORE it puts the plus sign in the final position on the last
subfile record, hence the field is overlapping the + sign.

-Bob Cozzi
www.RPGxTools.com
If everything is under control, you are going too slow.
- Mario Andretti


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Jim Hawkins
Sent: Tuesday, April 19, 2005 10:20 AM
To: rpg400-l
Subject: Subfile compile problem

I am reworking an old subfile program.  I am getting errors when I compile 
the display file that indicates that the position (78) is not valid. 
Segment of code and error are attached.  This is probably something very 
simple that I'm overlooking-but it is totally escaping me.  If I change 
the position to 77, it will compile, but naturally it overlaps the 
previous field and doesn't show.  Anyone see what I'm missing?  (And the 
dspsize is defined as 80 wide.)
A* SUBFILE SCREEN 1 *  
A********************  
A          R SFL71S3                   SFL  
A            SFOPTN         1A  B  9  2VALUES(' ' '2' '4' '5')  
A                                      CHECK(ER)  
A  49                                  DSPATR(PC)  
A            SHTYPE    R        O  9  4REFFLD(ZZR47/TYPE47 ZZP47) 
A            SFACCN    R   12   O  9  9REFFLD(ACCN47 ZZP47)  
A            SFDESC        35A  O  9 22  
A  68                                  DSPATR(HI)  
A            SFAMT     R        O  9 58REFFLD(AMT47 ZZP47)  
A                                      EDTCDE(J)  
A            SFDBIT         2A  O  9 72  
A            SFCRDT         2A  O  9 75  
A*         HIDDEN FIELDS  
A            SHDESC    R        H      REFFLD(ACDESC FLP003)  
A            SHCDXT    R        H      REFFLD(CDXT47 ZZP47)  
A            SFACCF         1A  O  9 78  
*                       CPD7840-******
 
************************************************************************** 


     ID      Severity  Number

* CPD7840      30        1      Message . . . . :   Position number for 
field not valid.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+

Thank in advance


 Jim Hawkins

-- 
This is the RPG programming on the AS400 / iSeries (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.