Set Century (CEESCEN) API


  Required Parameter:

1 century_start Input INT4

  Omissible Parameter:

2 fc Output FEEDBACK

  Service Program Name: QLEAWI

  Default Public Authority: *USE

  Threadsafe: Yes

The Set Century (CEESCEN) API sets the century within which 2-digit year values are assumed to lie. Use it in conjunction with CEEDAYS or CEESECS when processing date values that contain 2-digit years (in the YYMMDD format), and when the ILE default century interval does not meet the requirements of a particular application.


Authorities and Locks

None.


Required Parameter

century_start (input)
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/optional)
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  
CEE2502 Local time not available
Severity: 30  
CEE2533 The century_start value is not between 0 - 100
Severity: 30  
CEE9902 Unexpected user error occurred in &1
Severity: 30  


API introduced: V2R3
Top | ILE CEE APIs | APIs by category