Copy.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
  4. <sect1 id="Copy">
  5. <title>Copy</title>
  6. <para><emphasis role="bold">STD.File.Copy<indexterm>
  7. <primary>STD.File.Copy</primary>
  8. </indexterm><indexterm>
  9. <primary>File.Copy</primary>
  10. </indexterm><indexterm>
  11. <primary>Copy</primary>
  12. </indexterm>(</emphasis> <emphasis> logicalname,
  13. destinationGroup</emphasis> <emphasis role="bold">, </emphasis>
  14. <emphasis>destinationLogicalname, </emphasis> <emphasis role="bold">
  15. [</emphasis> <emphasis>,scrDali</emphasis> <emphasis role="bold">]
  16. [</emphasis> <emphasis>,timeout</emphasis> <emphasis role="bold">]
  17. [</emphasis> <emphasis>,espserverIPport </emphasis> <emphasis
  18. role="bold">]</emphasis> <emphasis role="bold"> [</emphasis>
  19. <emphasis>,maxConnections</emphasis> <emphasis role="bold">] [</emphasis>
  20. <emphasis>,allowoverwrite</emphasis> <emphasis role="bold">]</emphasis>
  21. <emphasis role="bold"> [</emphasis> <emphasis>,replicate</emphasis>
  22. <emphasis role="bold">] [</emphasis> <emphasis>,asSuperfile</emphasis>
  23. <emphasis role="bold">] );</emphasis><emphasis></emphasis></para>
  24. <para><emphasis>dfuwuid</emphasis> <emphasis role="bold"> :=
  25. STD.File.fCopy<indexterm>
  26. <primary>STD.File.fCopy</primary>
  27. </indexterm><indexterm>
  28. <primary>File.fCopy</primary>
  29. </indexterm><indexterm>
  30. <primary>fCopy</primary>
  31. </indexterm>(</emphasis> <emphasis> logicalname,
  32. destinationGroup</emphasis> <emphasis role="bold">,</emphasis> <emphasis
  33. role="bold"> </emphasis> <emphasis>destinationLogicalname, </emphasis>
  34. <emphasis role="bold"> [</emphasis> <emphasis>,scrDali</emphasis> <emphasis
  35. role="bold">] [</emphasis> <emphasis>,timeout</emphasis> <emphasis
  36. role="bold">] [</emphasis> <emphasis>,espserverIPport </emphasis> <emphasis
  37. role="bold">]</emphasis> <emphasis role="bold"> [</emphasis>
  38. <emphasis>,maxConnections</emphasis> <emphasis role="bold">] [</emphasis>
  39. <emphasis>,allowoverwrite</emphasis> <emphasis role="bold">]</emphasis>
  40. <emphasis role="bold"> [</emphasis> <emphasis>,replicate</emphasis>
  41. <emphasis role="bold">] [</emphasis> <emphasis>,asSuperfile</emphasis>
  42. <emphasis role="bold">] );</emphasis></para>
  43. <informaltable colsep="0" frame="none" rowsep="0">
  44. <tgroup cols="2">
  45. <colspec colwidth="80.50pt" />
  46. <colspec />
  47. <tbody>
  48. <row>
  49. <entry><emphasis>logicalname</emphasis></entry>
  50. <entry>A null-terminated string containing the logical name of the
  51. file.</entry>
  52. </row>
  53. <row>
  54. <entry><emphasis>destinationGroup</emphasis></entry>
  55. <entry>A null-terminated string containing the destination cluster
  56. for the file.</entry>
  57. </row>
  58. <row>
  59. <entry><emphasis>destinationLogicalname</emphasis></entry>
  60. <entry>A null-terminated string containing the new logical name of
  61. the file.</entry>
  62. </row>
  63. <row>
  64. <entry><emphasis>srcDali</emphasis></entry>
  65. <entry>Optional. A null-terminated string containing the IP and Port
  66. of the Dali containing the file to copy. If omitted, the default is
  67. an intra-Dali copy.</entry>
  68. </row>
  69. <row>
  70. <entry><emphasis>timeout</emphasis></entry>
  71. <entry>Optional. An integer value indicating the timeout setting. If
  72. omitted, the default is -1. If set to zero (0), execution control
  73. returns immediately to the ECL workunit without waiting for the DFU
  74. workunit to complete.</entry>
  75. </row>
  76. <row>
  77. <entry><emphasis>espserverIPport</emphasis></entry>
  78. <entry>Optional. A null-terminated string containing the protocol,
  79. IP, port, and directory, or the DNS equivalent, of the ESP server
  80. program. This is usually the same IP and port as ECL Watch, with
  81. “/FileSpray” appended. If omitted, the default is the value
  82. contained in the lib_system.ws_fs_server attribute.</entry>
  83. </row>
  84. <row>
  85. <entry><emphasis>maxConnections</emphasis></entry>
  86. <entry>Optional. An integer specifying the maximum number of
  87. connections. If omitted, the default is one (1).</entry>
  88. </row>
  89. <row>
  90. <entry><emphasis>allowoverwrite</emphasis></entry>
  91. <entry>Optional. A boolean TRUE or FALSE flag indicating whether to
  92. allow the new file to overwrite an existing file of the same name.
  93. If omitted, the default is FALSE.</entry>
  94. </row>
  95. <row>
  96. <entry><emphasis>replicate</emphasis></entry>
  97. <entry>Optional. A boolean TRUE or FALSE flag indicating whether to
  98. automatically replicate the new file. If omitted, the default is
  99. FALSE.</entry>
  100. </row>
  101. <row>
  102. <entry><emphasis>asSuperfile</emphasis></entry>
  103. <entry>Optional. A boolean TRUE or FALSE flag indicating whether to
  104. treat the file as a superfile. If omitted, the default is FALSE. If
  105. TRUE and the file to copy is a superfile, then the operation creates
  106. a superfile on the target, creating subfiles as needed while
  107. overwriting only those already existing subfiles whose content has
  108. changed. If FALSE and the file to copy is a superfile, then the
  109. operation consolidates all the superfile content into a single
  110. logical file on the target, not a superfile.</entry>
  111. </row>
  112. <row>
  113. <entry><emphasis>dfuwuid</emphasis></entry>
  114. <entry>The attribute name to recieve the null-terminated string
  115. containing the DFU workunit ID (DFUWUID) generated for the
  116. job.</entry>
  117. </row>
  118. <row>
  119. <entry>Return:<emphasis> </emphasis></entry>
  120. <entry>fCopy returns a null-terminated string containing the DFU
  121. workunit ID (DFUWUID).</entry>
  122. </row>
  123. </tbody>
  124. </tgroup>
  125. </informaltable>
  126. <para>The <emphasis role="bold">Copy </emphasis>function takes a logical
  127. file and copies it to another logical file. This may be done within the same
  128. cluster, or to another cluster, or to a cluster in a completely separate
  129. Dali.</para>
  130. <para>Example:</para>
  131. <programlisting format="linespecific">STD.File.Copy('OUT::MyFile','400way','OUT::MyNewFile');
  132. </programlisting>
  133. </sect1>