×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




-----Original Message-----
From: Michael Ryan
Don't you need PERRCD(5) or something?
---------------------------
The arrays, as I've defined them, are using the default of PERRCD.
"If the keyword is not specified, the number of entries defaults to 1."

From the manual:
"The PERRCD keyword allows you to specify the number of elements per record for a compile-time or a prerun-time array or table."

Note the "per record" part of that definition.

That would be used if the array was less than the max size of a compile time record (max is 100).

So, to use PERRCD the array could be a maximum of 50 characters.

Dcl-s Names Char(50) Dim(4) CTDATA PERRCD(2);

**CTDATA NAMES
ONEONEONEONEONEONEONEONEONEONEONEONEONEONEONEONE__TWOTWOTWOTWOTWOTWOTWOTWOTWOTWOTWOTWOTWOTWOTWOTWO__
THREETHREETHREETHREETHREETHREETHREETHREETHREETHREEFOURFOURFOURFOURFOURFOURFOURFOURFOURFOURFOURFOUR__



This is an example that uses the PERRCD and the ALT keyword:

Dcl-S Typ Char(1) DIM(14) CTDATA PERRCD(7);
Dcl-S Dsc Char(7) DIM(14) ALT(Typ);

**
PPackeD Szoned Bbinary Ffloat Achar Ldate Ttime
ZTmStmP Hhex Jdbcs-J Edbcs-E Odbcs-O Gdbcs-G



Chris Hiebert
Senior Programmer/Analyst
Disclaimer: Any views or opinions presented are solely those of the author and do not necessarily represent those of the company.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.