SAS Risk Dimensions, SAS High Performance Risk, SAS Enterprise GRC and other banking and insurance solutions

Change length of reserved variable (Currency) in RD

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 13
Accepted Solution

Change length of reserved variable (Currency) in RD

Hi!

 

I have a warning when running my RD environment, does anyone know how I change the length of reserved variables (in my case, the variable Currency)?

 

My warning -->

WARNING: Values for policy variable "Currency" will be truncated because the declared length (3) is less than the actual length
(32) of variable "Currency". This variable is in policy data set "AKT_RDE_TOTAL_PORTFOLIO" of portfolio data source

 

When trying to correct this in my declare statement, 

declare instvars=( CURRENCY char 32 var,)

 

I get this ERROR -->

ERROR: The name "CURRENCY" is reserved and cannot be used as the name of a user defined variable.

 

Any input is helpful, 

 

Regards,

/Claes


Accepted Solutions
Solution
‎04-21-2017 12:32 AM
SAS Moderator
Posts: 8

Re: Change length of reserved variable (Currency) in RD

Hi Claes,

If you set the width of the currency variable in the data set to 3, then the warning ought to go away. 

 

The error is telling you that you cannot use a reserved variable name when you declare an instrument variable.  The Procedures Guide lists system-defined variables and other reserved variable names.

 

Please let me know if this solves your problem. 

 

Thanks,

Michael

 

View solution in original post


All Replies
Solution
‎04-21-2017 12:32 AM
SAS Moderator
Posts: 8

Re: Change length of reserved variable (Currency) in RD

Hi Claes,

If you set the width of the currency variable in the data set to 3, then the warning ought to go away. 

 

The error is telling you that you cannot use a reserved variable name when you declare an instrument variable.  The Procedures Guide lists system-defined variables and other reserved variable names.

 

Please let me know if this solves your problem. 

 

Thanks,

Michael

 

Highlighted
Occasional Contributor
Posts: 13

Re: Change length of reserved variable (Currency) in RD

Hi Michael!
Thanks, that was my solution. Wasn't aware that I couldn't change the characteristic of some pre defined variables.

Best regards,
Claes
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 441 views
  • 0 likes
  • 2 in conversation