DFSTACK - Date Format for Stack

This Natural profile and session parameter determines the format in which the settings of date variables are placed on the stack via a STACK, RUN or FETCH statement.

Possible settings S Date variables are placed on the stack with a 2-digit year component, and delimiters as determined by the profile parameter DTFORM.



C Same as DFSTACK=S.

In addition, if the century used when the setting is read from the stack is not the same as that of the original date setting, Natural will issue a runtime error.

I Date variables are placed on the stack with a full 4-digit year component and no delimiters.



Default setting S
Dynamic specification yes
Specification within session yes Applicable statement: SET GLOBALS
Applicable command: GLOBALS
Application programming interface USR1005N See SYSEXT - Natural Application Programming Interfaces in the Utilities documentation.


  1. Within a Natural session, the profile parameter DFSTACK can be overridden by the session parameter DFSTACK.
  2. The profile parameter DFSTACK does not apply to STACK, RUN or FETCH statements for which the session parameter DF is set.
  3. See also Processing of Date Information in the Programming Guide.