Array question


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Grant Foraker on March 09, 2011 at 15:34:52:

Reason for my big spate of Comet32 testing is to take advantage of bigger array capability. Key parts of program(s).
---------------------------------------------------------------------!--------------- 01/15/2009 ---------------------------------------------------!
SET MAXJ = 150 ! MAX JOBS
SET MAXD = 32 ! MAX DEPT/TRADE
SET MAXM = 300 ! MAX MATRIX
! Note: MAXM has to be MAXJ times 2
! Note: MAXM * 11 has to be less than 8000
!------------------------------------------------------------------------------!


LENGTH 6.0 & LOCAL BUDREM,PBUDREM(MAXD,MAXJ),PDHRS(MAXD) ! 01/14/2009
!-------------------------------------------------------------------------------
! Note: PBUDREM matrix is limiting MAXD and MAXJ
!-------------------------------------------------------------------------------

0591 FORMAT_
CRAFT$;_
'1';_
HRS(1,1),MAXM*11
0592 FORMAT_
CRAFT$;_
'2';_
HRSOT(1,1),MAXM*11
0598 FORMAT HRS(1,1),MAXM*11
0599 FORMAT HRSOT(1,1),MAXM*11
---------------------------------------
Under Comet16 this is the max I can squeeze out of the program. Occasionally, one the customer's driver files goes over the limit and he gets an E50. He trims the driver file back of older jobs and hopes he doen't get any complaints from management. If he does, he creates another driver file and expands the program set some more. That's why he's at A-I.

Formats 0591 and 0592 are written to a work file of 8000 bytes. Another limit I hope to expand. Formats 0598, and 0599 are used in ClearFormat commands.

Since I'm getting an E32 in my Comet32 program that I don't get in the Comet16 version, I suspect the "HRS(1,1),MAXM*11". The Comet32 compiler gives me a "Use of repetition factor on multi-dimentional array" warning. Additionally, there have been recent forum postings on the subject.

QERRLOG is out, the new ErrorLog.CSV is useless, and I think there's no Debugger for Comet32.

What might I need to change in Comet32 to get my program working?


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]