Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

sdftr Analyze statement

&pagelevel(5)&pagelevel

The sdftr function analyzes a statement in text format and translates it into the format for the standardized transfer area. The result of this analysis is stored in the standardized transfer area. For detailed information, see the description of the TRSTMT macro ("TRSTMT Analyze statement").

The sdftr function can also be used to create conversion descriptions for the sdfrddef function.

Since the function has an optional parameter, there are 2 different formats.

Format 1:


int sdftr (char *area, char *stmt);


Format 2:


int sdftrall (char *area, char *stmt, char *allow);


Description of the parameters

char *area

Pointer to the buffer in which the standardized transfer area
was placed (see sdfinit).

char *stmt

Pointer to a string containing the statement to be analyzed
in text format. SDF internally converts the string into
a variable-length record.

char *allow

Pointer to a list of statements permissible as inputs (must be
aligned on a word boundary).

Format of the list of permissible statements:

N

statement1

statement 2

.....

statement n

N
statementx

(2 bytes):    number of statements in the list
(8 bytes) :   internal name of a valid statement

Result

The function returns an integer as its result (see "Description of the C functions").