[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RE: your mail



Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>


Hi again,


The LIKEDS keyword is used to make a copy of a data structure. Consider the following line of code:

DStopInfo LIKEDS(StopInfo_T) DIM(18)

What this does is make a new data structure named "StopInfo" that has the same subfields as a data structure named "StopInfo_T". (and the DIM keyword converts it into an array with 18 elements)

Since StopInfo will have the exact same subfields as StopInfo_T, there's no reason to list subfields for it. In fact, that's why you're receiving an error.

You've placed the following code after the LIKEDS line:

D peStopNum
D peStopTyp
D peIsCallR
D peIsBill
D peIsApptR
D peIsApptM
D peApptMB
D peApptMJ
D peIsSealR
D peIsPODR
D peIsJITstp
D peIsLive
D peETAJul
D peCustCdStp
D peRegion
D peErlyWnd
D peLateWnd

The system doesn't understand what all of those fields are. You can't define subfields manually when you use LIKEDS, because it copies the subfields from another structure.


So, it assumes that these are additional parameters in your prototype -- but it doesn't know what types of variables they are so it complains "Hey! You forgot the LIKE keyword!"

Just remove the subfields -- they should only be defined once, in the StopInfo_T data structure. They're not needed on the PR or the PI.
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------