GetSuperFileSubName.xml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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="GetSuperFileSubName">
  5. <title>GetSuperFileSubName</title>
  6. <para><emphasis role="bold">STD.File.GetSuperFileSubName<indexterm>
  7. <primary>STD.File.GetSuperFileSubName</primary>
  8. </indexterm><indexterm>
  9. <primary>File.GetSuperFileSubName</primary>
  10. </indexterm><indexterm>
  11. <primary>GetSuperFileSubName</primary>
  12. </indexterm>(</emphasis> <emphasis> superfile, subfile </emphasis>
  13. <emphasis role="bold">[,</emphasis> <emphasis>absolutepath</emphasis>
  14. <emphasis role="bold">] )</emphasis></para>
  15. <informaltable colsep="0" frame="none" rowsep="0">
  16. <tgroup cols="2">
  17. <colspec colwidth="80.50pt" />
  18. <colspec />
  19. <tbody>
  20. <row>
  21. <entry><emphasis>superfile</emphasis></entry>
  22. <entry>A null-terminated string containing the logical name of the
  23. superfile.</entry>
  24. </row>
  25. <row>
  26. <entry><emphasis>subfile</emphasis></entry>
  27. <entry>An integer in the range of one (1) to the total number of
  28. sub-files in the <emphasis>superfile</emphasis> specifying the
  29. ordinal position of the sub-file whose name to return.</entry>
  30. </row>
  31. <row>
  32. <entry><emphasis>absolutepath</emphasis></entry>
  33. <entry>Optional. A boolean TRUE/FALSE to indicate whether to prepend
  34. a tilde (~) to the resulting foreign logical file name. If omitted,
  35. the default is FALSE.</entry>
  36. </row>
  37. <row>
  38. <entry>Return:<emphasis> </emphasis></entry>
  39. <entry>GetSuperFileSubName returns a VARSTRING value.</entry>
  40. </row>
  41. </tbody>
  42. </tgroup>
  43. </informaltable>
  44. <para>The <emphasis role="bold">GetSuperFileSubName </emphasis>function
  45. returns the logical name of the specified <emphasis>subfile</emphasis> in
  46. the <emphasis>superfile</emphasis>.</para>
  47. <para>This function is not included in a superfile transaction.</para>
  48. <para>Example:</para>
  49. <programlisting format="linespecific">A := STD.File.GetSuperFileSubName('~CLASS::RT::IN::SF1', 1);
  50. //get name of first sub-file
  51. //this example gets the name of the first sub-file in
  52. // a foreign superfile
  53. sf := '~thor_data400::BASE::Business_Header';
  54. sub := STD.File.GetSuperFileSubName( STD.File.ForeignLogicalFileName (sf,
  55. '10.150.29.161',
  56. TRUE),
  57. 1,TRUE);
  58. OUTPUT(STD.File.ForeignLogicalFileName(sub,''));</programlisting>
  59. </sect1>