Query Century (CEEQCEN) API


  Required Parameter:

1 century_start Output INT4

  Omissible Parameter:

2 fc Output FEEDBACK

  Service Program Name: QLEAWI

  Default Public Authority: *USE

  Threadsafe: Yes

The Query Century (CEEQCEN) API queries the century within which 2-digit year values are assumed to lie. Use it in conjunction with CEESCEN when it is necessary to save and restore the current setting. If the ILE default is in effect, all 2-digit years are assumed to lie within a 100-year window. This window starts 80 years prior to the system date and CEEQCEN returns a value of 80.

Authorities and Locks

None.


Required Parameter

century_start (output)
An integer between 0 and 100. A value of 80 (the ILE default) means all 2-digit years lie within the 100-year window starting 80 years before the system date. For example, in 1990, all 2-digit years are assumed to represent dates between 1910 and 2009, inclusive.

Omissible Parameter

fc (output)
A 12-byte feedback code passed by reference. If specified as an argument, a condition token is returned to the calling procedure. If not specified and the requested operation was not successfully completed, the condition is signaled to the condition manager.

Feedback Codes and Conditions

CEE0000 The API completed successfully
Severity: 00  
CEE9902 Unexpected user error occurred in &1
Severity: 30  


API introduced: V2R3

[ Back to top | ILE CEE APIs | APIs by category ]