Comparing system date to alphanumeric field in CULPRIT
search cancel

Comparing system date to alphanumeric field in CULPRIT

book

Article ID: 10734

calendar_today

Updated On:

Products

IDMS IDMS - Database

Issue/Introduction

Using CULPRIT, how to compare the system date returned by US10 to a date field in the format MM/DD/YY?

US10 returns the date in a numeric field.

This code shows how to compare it to an alphanumeric field.

Environment

Release: All supported releases.
Component: Culprit.

Resolution

The attached file culprit.txt has sample code for doing this, along with input and output.

The system date returned by US10 is a numeric field of the format MMDDYY.

US34 is used to convert it to an alphabetic field which can then be compared to the input of format MM/DD/YY.

Additional Information

Attachments

culprit.txt get_app