gyounggido
Programmer
Hello, I have the following script which pulls inactive user accounts. I'd like to have this automatically go back 90 days without prompting the user for a date. I'm a VMS guy, so I'm used to just entering -90- for that. Unfortunately, this doesn't work in the particular utility I'm using (Datatrieve for VAX). Can someone please tell me what would be used in this case? I'm sure it's just a simple thing that's eluding me. Thanks in advance.
PROCEDURE SYSUAF_INACTIVITY_BCLUSTER
DECLARE CUTOFF_DATE USAGE DATE.
CUTOFF_DATE = *."Enter Cutoff Date"
READY IMBUAFDAT SHARED READ
REPORT IMBUAFDAT WITH
LLI BEFORE CUTOFF_DATE AND
LLN BEFORE CUTOFF_DATE AND
LLI AFTER "17-NOV-1858" AND
LLN AFTER "17-NOV-1858" ON OPER_ROOT:[U634390]IMBINACT.DAT
SET REPORT_NAME = "BCLUSTER Inactive User Account Report"
PRINT USERNAME,
OWNER,
LLI ("LAST"/"INTERACTIVE"/"LOGIN",
LLN ("LAST"/"NON-INTERACTIVE"/"LOGIN"
AT BOTTOM OF REPORT PRINT SKIP, COL 10,
"Total Inactive Accounts:", SPACE, COUNT (-), SKIP, COL 10,
"Login Cutoff Date Used :", SPACE, CUTOFF_DATE (-)
END_REPORT
FINISH
RELEASE CUTOFF_DATE
END_PROCEDURE
PROCEDURE SYSUAF_INACTIVITY_BCLUSTER
DECLARE CUTOFF_DATE USAGE DATE.
CUTOFF_DATE = *."Enter Cutoff Date"
READY IMBUAFDAT SHARED READ
REPORT IMBUAFDAT WITH
LLI BEFORE CUTOFF_DATE AND
LLN BEFORE CUTOFF_DATE AND
LLI AFTER "17-NOV-1858" AND
LLN AFTER "17-NOV-1858" ON OPER_ROOT:[U634390]IMBINACT.DAT
SET REPORT_NAME = "BCLUSTER Inactive User Account Report"
PRINT USERNAME,
OWNER,
LLI ("LAST"/"INTERACTIVE"/"LOGIN",
LLN ("LAST"/"NON-INTERACTIVE"/"LOGIN"
AT BOTTOM OF REPORT PRINT SKIP, COL 10,
"Total Inactive Accounts:", SPACE, COUNT (-), SKIP, COL 10,
"Login Cutoff Date Used :", SPACE, CUTOFF_DATE (-)
END_REPORT
FINISH
RELEASE CUTOFF_DATE
END_PROCEDURE