infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
Second Pattern for PDL
Gordon Koch
Hello All,
I have a lab system that is sending an added <eot> (hex 04) at the end of the ACK going to the engine. This rest of the encapsulation is "normal". I have attempted to modify the PDL for the outbound thread to include this second pattern. However, I must have the syntax wrong, since I am still getting the following error:
[pdl :PDL :DBUG/0:windopath_adt:07/28/2011 12:28:28] Calling Tcl procedure: hci_pd.read
[pdl :PDL :DBUG/0:windopath_adt:07/28/2011 12:28:28] with args: {}
[pdl :PDL :DBUG/0:windopath_adt:07/28/2011 12:28:28] Tcl procedure hci_pd.read returns 'RECEIVE'
[pdl :PDL :DBUG/0:windopath_adt:07/28/2011 12:28:28] trying to match phrase: basic-msg
[pdl :PDL :DBUG/0:windopath_adt:07/28/2011 12:28:28] multi: phrase #0 rejected; trying next
[pdl :PDL :ERR /0:windopath_adt:07/28/2011 12:28:28] no-match: no more phrases to try
Please help with the correct coding for the pdl file. This is the related portion that I have now:
define phrase basic-msg;
<vt>;
field data = variable-array( not( <fs> ) );
<fs>; <cr>;
end phrase;
define phrase ack-msg;
<vt>;
field data = variable-array( not( <fs> ) );
<fs>; <cr>; <eot>;
end phrase;
Any help would be appreciated.
Thank You.
Find more posts tagged with
Clovertech
Comments
Russ Ross
Did you compile the PDL after you modified it to create the corresponding pdo file?
Here is an example of how to compile my.pdl
cd to directory where the pdl is located (should be either something like $HCIROOT/pdls or $HCISITEDIR/pdls)
hcipdc my.pdl
This should create a new my.pdo file that includes your modifications.
It has been many years since I did anything with a PDL and I remember concluding it was only paying attention to the first termination character and nothing after that but hopefully that is no longer the case.
PDL is very picky about the last line in the file so be sure it isn't a blank line or has a space after the last character on the last line or you will be challenged to figure out the problem.
I also looked at some of the other examples and saw items defined on separate lines in some of the PDLs.
From past programming expereince I know stacking commands using a semi-colon on a single line sometimes creates situataions, so even though it is a long shot you could also try this
define phrase ack-msg;
;
field data = variable-array( not( ) );
;
;
;
end phrase;
I'm also assuming that is the correct definition for the character of intrest which corresponds to x04 in the ASCII table I just pulled up but never sure how the PDL wants it defined and I don't know if you can specifiy x04 instead of .
I never received any PDL training and have to try various things like you are without really knowing what I'm doing exactly.
Gordon Koch
Hello Ross,
Thank you for your reply. I have subsequently learned that most likely the next pattern cannot be in a different "define phrase" command. The next pattern needs to be in the same basic-msg group, and I do not know the syntax for that. Otherwise there needs to be some other coding or setup that is beyond me. My understanding of PDL is very limited, but I thought I would take a stab at it.
Thanks.