× 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 don't recall why I had it zoned. DMPOBJ on the data area looks like it is packed. I never willingly use zoned in a declare.

Roger Harman
COMMON Certified Application Developer - ILE RPG on IBM i on Power

 
 




From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxx> on behalf of Roger Harman <roger.harman@xxxxxxxxxxx>
Sent: Thursday, June 28, 2018 1:53 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: Declaring a *dec data area
 

When I've used a numeric data area, it needed to be defined as zoned.  And, need a colon separator, not comma.

dcl-s NextSeqNbr zoned(3:0) dtaara('EBS053SEQ'); 

Roger Harman
COMMON Certified Application Developer - ILE RPG on IBM i on Power
 
  
  
   



From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxx> on behalf of Alan Shore <ashore@xxxxxxxx>
Sent: Thursday, June 28, 2018 1:41 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Declaring a *dec data area
 

Hi everyone
We are on V7r1

I am trying to declare a data area that is created as *DEC (3,2)
I tried the following
dcl-s Ovrhdr      packed(3,2) dtaara('OVRHDTAARA');
But that received a compile error of

*RNF3402 20 a      012200  Length entry is not valid; defaults to blanks.
Pointing to the 3,2 in the compile listing

Anyone know what I am doing wrong?

As always - all answers gratefully accepted


Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
'If you're going through hell, keep going.'
Winston Churchill


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.