CREATE_PROCESS

Use the CREATE_PROCESS script function to create a data sequence. The script function returns a reference to the data sequence created. The script function lets you specify whether the data sequence is empty, or filled with lines from other data sequences.

Tips:

Syntax

CREATE_PROCESS (Mode [[ , Data sequence1] , Data sequence2])

Parameters

Examples

The following example creates an empty data sequence. The script adds 2 lines with 3 columns each to the data sequence. The second line is filled with values retrieved from a VARA object.

:SET &HND# = CREATE_PROCESS(NEW)
:SET &LINE1#"Test1,Test2,Test3"
:SET &RET#PUT_PROCESS_LINE(&HND#, &LINE1#, ",")
:DEFINE &LINE2#, string, 3
:FILL &LINE2#[] = GET_VAR(TEST.VAR, KEY1)
:SET &RET#PUT_PROCESS_LINE(&HND#, &LINE2#[],)

The following example creates a duplicate of an existing data sequence.

:SET &HND1# = PREP_PROCESS_VAR(VARA.DB,"*WIN*")
:SET &HND2# = CREATE_PROCESS(DUPLICATE,&HND1#)

The following example creates a new data sequence by combining two existing data sequences.

:SET &HND1# = PREP_PROCESS_VAR(VARA.DB1,"*WIN*")
:SET &HND2# = PREP_PROCESS_VAR(VARA.DB2,,"*JOBS*",1)
:SET &HND#CREATE_PROCESS(JOIN,&HND1#,&HND2#)

See also:

seealso

Script Elements for Data Sequences