Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

PN5_60873

Description

Enhance jpq, the Proc processor, to allow external calls to paragraphs


Previous Release Behavior

The ability to chain to or call paragraphs from a proc did not exist.


Current Release Behavior

Paragraphs can now be executed from a proc in 2 ways:


(filename paragraph)     chain to a paragraph
[filename paragraph]     call a paragraph and continue execution of the proc

where filename is the name of the file where the paragraph is stored.

For example, given this proc in the MD (or VOC):


ID: EXEC
001 PQ
002 S2
003 (PROK

and this paragraph, stored in a file called PROK which, for this example, holds both Procs and Paragraphs:


ID: PATEST
001 PA
002 DISPLAY "Better a little which is done well, than a great deal imperfectly." -- Socrates

The proc will chain to the paragraph and then termninate:


jsh ~ -->EXEC PATEST
"Better a little which is done well, than a great deal imperfectly." -- Socrates

jsh ~ -->

Likewise, a paragraph can be called within a proc as in:


001 PQ
002 [PROK PATEST]
003 ODone!

The proc will continue execution after the PATEST paragraph has been executed.


Notes

Paragraphs are orthogonal to the proc. In other words, any output from the paragraph does not affect any of the proc buffers; it is an independent process from the rest of the proc.

Paragraphs can exist in any file and can then be run with the para command. For example, if the above paragraph is stored in a file called SCRIPTS then it can be executed with:


para SCRIPTS PATEST

Was this article helpful?