$Curfile: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
 
mNo edit summary
Line 7: Line 7:
</li>
</li>
</ul>
</ul>
<p>See [[Files, Groups, and Reference Context#$CURFILE and $UPDATE functions|$CURFILE and $UPDATE functions]] for a discussion of default files and for examples of requests using $CURFILE.      </p>
<p>See [[Files, groups, and reference context#$CURFILE and $UPDATE functions|$CURFILE and $UPDATE functions]] for a discussion of default files and for examples of requests using $CURFILE.      </p>
<p>You cannot use an IN clause that includes both MEMBER and $CURFILE. See [[Files, Groups, and Reference Context#IN GROUP MEMBER clause|IN GROUP MEMBER clause]] for more information about the IN GROUP MEMBER clause.  </p>
<p>You cannot use an IN clause that includes both MEMBER and $CURFILE. See [[Files, groups, and reference context#IN GROUP MEMBER clause|IN GROUP MEMBER clause]] for more information about the IN GROUP MEMBER clause.  </p>
 
[[Category:SOUL $functions]]
[[Category:SOUL $functions]]

Revision as of 20:37, 2 January 2014

The $CURFILE function returns the name of the file from which the current record has been selected. If the file is remote, $CURFILE also returns the location of the file (in the form filename AT location). $CURFILE takes no arguments.

You can use $CURFILE in two places:

  • In arithmetic and PRINT specifications within a record loop
  • In an IN clause to override a default file or group in a STORE RECORD statement

See $CURFILE and $UPDATE functions for a discussion of default files and for examples of requests using $CURFILE.

You cannot use an IN clause that includes both MEMBER and $CURFILE. See IN GROUP MEMBER clause for more information about the IN GROUP MEMBER clause.