Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Macro name changed from html to html-bobswift during server to cloud migration processing.

...

Anchor
1089330
1089330
The syntax for the data command is as follows:

Panel

Html bobswift

<pre>
data [NAME|print=NAME] [resolve=all|defined|no] [end=ENDSEQUENCE]
[DATA]
end|ENDSEQUENCE
</pre>

Anchor
1089334
1089334
Creating an In-Stream Data Element

...

Anchor
1089359
1089359
The following example shows how to use the data command in conjunction with the exec command to look through a series of copied files and display lines with the occurrence of some string under UNIX:

Panel

Html bobswift

<pre>
open remote=yourmachine user=someguy pwd=somepwd

data mydata resolve=all
grep "this is my sequence" $(_file)
exit
end

copy local=*.txt

forfiles remote=*.txt
   exec remote cmd=ksh input=mydata
end

close
</pre>

Anchor
1089374
1089374
Printing Data Element Information

...

Anchor
1089384
1089384
Continuing with the previous example, issuing:

Panel

Html bobswift

<pre>
data print=mydata
</pre>

Anchor
1089386
1089386
Will produce the following output:

Panel

Html bobswift

<pre>
  ----> Begin 'mydata' <----
     grep "this is my sequence" $(_file)
     exit
  ---->  End 'mydata'  <----
</pre>