Missing last digit in output of EDIT function when using &YYMD in a procedure

Missing last digit in output of EDIT function when using &YYMD in a procedure

book

Article ID: KB0071357

calendar_today

Updated On:

Products Versions
ibi WebFOCUS 8207.28.14, 9.1.1, 9.0.5,

Description

After upgrading from 8105 to 8207 there is a difference in the results of using the EDIT function

Below is a sample procedure and the results in both releases

Sample procedure:

TABLE FILE CAR
PRINT SALES
COMPUTE DEF_TODAY_SHOW/A10 = EDIT(&YYMD, '9999999999');
END
===============================

・In WebFOCUS 8.1.05, the value of "DEF_TODAY_SHOW" is 020230215
・In WebFOCUS 9.0.3, the value of "DEF_TODAY_SHOW" is 02023021

Note the final 5 from the 15 is missing in the new release

Environment

All environment

Resolution

The correct way to pass the parameter &YYMD is to surround it with single quotes '&YYMD'

Issue/Introduction

When passing &YYMD as a parameter to the EDIT function, the return is missing the last digit of the date