Published on :
Reporting INTERNAL_CREATION

Demonstration of International Monetary Formats

This code is also available in: Deutsch Español Français
This script executes a simple `DATA _NULL_` step. It initializes a numeric variable `x` with the value 1234.56. Then, it uses the `PUT` statement to write this value to the SAS© log, applying for each line a pair of formats: the local monetary format (`NLMNL...`) and the international monetary format (`NLMNI...`). The currencies processed are the British Pound (GBP), the Japanese Yen (JPY), the Australian Dollar (AUD), the Euro (EUR), and the New Zealand Dollar (NZD). Note: The provided code contains character strings (JSON file paths inserted after the ` @` characters) that appear to be substitution artifacts and would cause syntax errors if executed as is; they likely replace column pointers (e.g., ` @20`).
Data Analysis

Type : INTERNAL_CREATION


The data is a single variable 'x' defined directly within the Data step.

1 Code Block
DATA STEP
Explanation :
Writing formatted values to the log. The segments ' @code_sas_json/...' are artifacts probably replacing column positions (e.g., @code_sas_json_prod_multi/Daniel Langer WHICHC - SE - 20240508_de.json, @code_sas_json_prod_multi/Daniel Langer WHICHC - SE - 20240508_de.json) to align the output. The code uses NLMNL (National Language Monetary Local) and NLMNI (National Language Monetary International) formats followed by the ISO currency code.
Copied!
1DATA _NULL_;
2 x = 1234.56;
3 PUT 'UK - ' @code_sas_json/m205e01.json x NLMNLGBP. @code_sas_json_prod_multi/40 Program_9_4 Ratio Estimation -- Large Cities in the USA in 1920 and 1930_de.json Program_9_4 Ratio Estimation -- Large Cities in the USA in 1920 and 1930_de.json x NLMNIGBP.
4 / 'Japan - ' @code_sas_json/m205e01.json x NLMNLJPY. @code_sas_json_prod_multi/40 Program_9_4 Ratio Estimation -- Large Cities in the USA in 1920 and 1930_de.json Program_9_4 Ratio Estimation -- Large Cities in the USA in 1920 and 1930_de.json x NLMNIJPY.
5 / 'Australia - ' @code_sas_json/m205e01.json x NLMNLAUD. @code_sas_json_prod_multi/40 Program_9_4 Ratio Estimation -- Large Cities in the USA in 1920 and 1930_de.json Program_9_4 Ratio Estimation -- Large Cities in the USA in 1920 and 1930_de.json x NLMNIAUD.
6 / 'Euro - ' @code_sas_json/m205e01.json x NLMNLEUR. @code_sas_json_prod_multi/40 Program_9_4 Ratio Estimation -- Large Cities in the USA in 1920 and 1930_de.json Program_9_4 Ratio Estimation -- Large Cities in the USA in 1920 and 1930_de.json x NLMNIEUR.
7 / 'New Zealand - ' @code_sas_json/m205e01.json x NLMNLNZD. @code_sas_json_prod_multi/40 Program_9_4 Ratio Estimation -- Large Cities in the USA in 1920 and 1930_de.json Program_9_4 Ratio Estimation -- Large Cities in the USA in 1920 and 1930_de.json x NLMNINZD. ;
8RUN;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.