Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display File Field Error?

Status
Not open for further replies.

loonybin

Programmer
Dec 12, 2002
38
0
0
US
I have a numeric field(18N 0 Dec) which is needed on the selection screen. I am doing a REFFLD, clearly defining it as 18N 0. When I run a debug on my CL and I display the field, it's showing as 10 Char! Could someone please explain this to me. It works if it's only 10N 0.
Does it mean there's length restriction on certain types? If so, is there a way I could handle this a different way?

Thank you in advance.
 
What you're going to have to do then is:

1. Define #Field as 18 S 0.
2. Remove the REFFLD for #Field.
3. In the program, move the data from GwField to #Field or vice versa.

RedMage1967
IBM Certifed - RPG IV Progammer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top