%STOREPLF Example


Example:

 

PlfData

DIM

^

.

 

 

ABC

PLFORM

First.PLF

.

 

 

 

%STOREPLF

PlfData ;Start collecting PLFORM data!

.

 

 

RST

PLFORM

"Second.PLF"

.

 

 

XYZ

PLFORM

"Third.PLF"

.

 

 

 

...

 

.

 

 

 

MOVEPTR

PlfData, PlfData

 

IF

OVER

 

DISPLAY

"Not %STOREPLF data!"

 

ELSE

 

 

DISPLAY

"PlfData:",*ll, PlfData

 

ENDIF

 

 

For this program logic, the compiler collects PLFORM data in the following format and stores it into a DIM variable at the end of the UDA. It then initializes the PlfData program DIM pointer to point to the collected data.

 

"RST,Second.PLF;XYZ,Third.PLF"

 



PL/B Language Reference