How To Use PDL (Parameter Definition Language) in Abinitio
How To Use PDL (Parameter Definition Language) in Abinitio
Language) in Abinitio
26/04/2011
Author
Amitava Dey
[email protected]
TCS Internal
Introduction
TCS Internal
If you change to a version 2.13 Co>Operating System run host, you must turn
off dynamic script generation before running the graph.
TCS Internal
If you change script generation back to GDE 1.13 Compatible, the GDE will
check to make sure you do not have any PDL-interpreted parameters (except
for layout parameters or eme-dependent parameters). If the GDE finds
otherwise, it will report an error and not change the setting.
Making PDL the default graph parameter interpretation
To set PDL as the default interpretation of graph parameters for a particular
graph:
TCS Internal
You can change such behavior by specifying $-text at the start of the value.
This makes PDL use "text" mode (with DML quoting conventions used
everywhere) for everything that follows the $-text:
$-text "The value of \$FOO is $FOO" $-dml;
The $-dml directive at the end of the value restores the PDL interpretation's
default DML mode.
TCS Internal
In record format strings interpreted in PDL, you don't have to specially escape \s (just
as you don't have to escape them in DML).
For example, the following definition for the test_value field in an Output File's
record format:
TCS Internal
Note also how the other fields' string('\n') definitions resolve as they were defined,
without any escaping.
String literals in PDL
In PDL, substitution is turned off by default inside string literals.
By default, DML lexical conventions are assumed
Strings in include statements in PDL behave just as they do in
regular DML.
Substitution and quoting in PDL
$"identifier" and $'identifier'
substitution, plus quoting.
are
interpreted
as
parameter
TCS Internal
There are three PDL parsing modes, which you can turn on and off with the following
inline directives:
$-dml
DML mode (the default). Specifies that DML quoting conventions are to be used for
$"name" processing, and when scanning for embedded strings. This has the effect of
turning off $name substitution within strings.
$-text
"Text" mode. Specifies that $name substitution is not to be suppressed inside quoted
strings. DML quoting conventions are still used for $"name" constructs.
$-literal
PDL examples
TCS Internal
Substitution examples
Prefixing $ to the identifier:
TCS Internal
Here the even number of \s results in the $ substitution occurring, and half of the \s
being output:
TCS Internal