Exploring, predicting and reporting with SAS Visual Analytics and SAS Visual Statistics

Indian Comma Format

Accepted Solution Solved
Reply
Contributor
Posts: 22
Accepted Solution

Indian Comma Format

How to get Indian comma format in VA. It would be really great if you could just help me with this! Kindly update, ASAP.


Accepted Solutions
Solution
‎02-07-2018 03:18 AM
Contributor
Posts: 22

Re: Indian Comma Format

So, I saved my file in VMWare C drive, and i selected import option in VA import>> sas dataset>> C:. the program i created in VMwarw is not visible out of vmware. Thats why i cannot import the filCapture.PNGCapture1.PNG

View solution in original post


All Replies
Frequent Contributor
Posts: 92

Re: Indian Comma Format

Contributor
Posts: 22

Re: Indian Comma Format

I tried all the possible ways mentioned on the link you shared. Did not work.
Super User
Posts: 4,025

Re: Indian Comma Format

[ Edited ]

You can make use of user-defined formats in SAS VA. This includes PICTURE-type formats as long as they are not date or time related:

http://support.sas.com/kb/56/402.html

 

Since the Indian comma format is not date-related you should be OK.

 

The user-defined format has to be created outside of VA in 'normal' SAS:

proc format library = library;
  picture MyIndianFormat
  low-high='99,99,99,999.99';
run;

then the SAS FORMATS catalog where the format (in the LIBRARY folder in a file called formats.sas7bcat) is stored has to be loaded into a particular SAS VA folder as explained here:

http://support.sas.com/documentation/cdl/en/vaag/69958/HTML/default/viewer.htm#n1smzfeuhcmcb5n1qfoxg...

 

Once you have added the FORMATS catalog, you then apply it to the required columns in your SAS table using a FORMAT statement BEFORE you load it into VA:

data MyVATable;
  set MySASTable;
  format MySASNumber MyIndianFormat.;
run;

After loading this table into your LASR library you should be able to see the format displayed in the Report Designer Data Pane beside the column MySASNumber and it should show in any reports using this column.

 

Contributor
Posts: 22

Re: Indian Comma Format

right! now this make sense.
proc format;
picture indianc
low-high='0,00,00,00,00,00,00,000';
run;

data new;
a=100;output;
a=1000;output;
a=10000;output;
a=100000;output;
a=1000000;output;
a=10000000;output;
a=100000000;output;
a=1000000000;output;
a=10000000000;output;
format a indianc.;
run;

proc print data=new;
run;

data CustomerOrdersEE;
set indianc;
format Profit MyIndianFormat.;
run;

this is the code I tried. How do i load LASR tables in VA. How to export this code from SAS to VA?
Contributor
Posts: 22

Re: Indian Comma Format

Okay so the code I'm writing is in VMware, and I cannot load the data or table in VA coz that is not possible. Is there any other way to set Indian comma format?
Super User
Posts: 4,025

Re: Indian Comma Format

Are you new to SAS VA? Its appears you missing many of the basics on how VA works. If this is the case then I would highly recommend you do some SAS VA training, like the courses provided by SAS.

 

Also ANY SAS table can be loaded into VA. It doesn't matter if you are creating it on a VMware computer or not.

 

The instructions I've provided are correct because I've used them myself. If there are any steps that require more explanation then please say.

Contributor
Posts: 22

Re: Indian Comma Format

Yes, I'm new to VA and I'm learning VA on my own. The code I mentioned above works perfect. In my computer, Internet is not accessible in VMware, hence, I'm using VA in Desktop(out of image) So the file i'm exporting and saving is being saved in VMware desktop. I don't know how to load tables in VA.
Contributor
Posts: 22

Re: Indian Comma Format

Please find the screenshots of VMware and VCapture2.PNGCapture.PNGCapture3.PNG

Super User
Posts: 4,025

Re: Indian Comma Format

Well the first step to loading a SAS dataset into SAS VA is to create a permanent version of the dataset:

libname MySASLib 'c:\MyFolder';

data MySASLib.New;
  set new;
run;

Once you have done this, open VA and go to the Import Data window as in your screenshot and choose Local - SAS Data Set. Navigate to your c:\MyFolder and select new.sas7bdat then select OK. VA should then load your table. If you then go into Report Designer you should then be able to choose NEW as a data source. 

Solution
‎02-07-2018 03:18 AM
Contributor
Posts: 22

Re: Indian Comma Format

So, I saved my file in VMWare C drive, and i selected import option in VA import>> sas dataset>> C:. the program i created in VMwarw is not visible out of vmware. Thats why i cannot import the filCapture.PNGCapture1.PNG

Super User
Posts: 4,025

Re: Indian Comma Format

[ Edited ]

I suggest you talk to your IT admin and explain that you need a folder location that is accessible from both VMware and SAS VA.

 

I'm not familiar with desktop VMware but there must be a way of sharing folders.

 

Your other option is to open a track with SAS Tech Support. They may be able to help more quickly.

Contributor
Posts: 22

Re: Indian Comma Format

Thankyou so much. I'll do that
☑ This topic is solved.

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

Discussion stats
  • 12 replies
  • 437 views
  • 1 like
  • 3 in conversation