Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10022

Re: issue while executing ssm procedures

$
0
0

It seems your code has gone backward as you no longer have the month and the % has come back into the result. I think you are dealing with two problems here.

 

The first is the PAS.

The second is the MDX.

 

I suggest you try to get the PAS working with another data source. Put some test data into a CSV or into a MS Access database and then write PAS to read that.Once you get to the point you have a SQL statement that produces the following, your PAS will be able to read it.

 

CHRO       JAN 2013    13.39

CHRO       FEB 2013   18.65

CHRO       MAR 2013   17.67

 

Your second issue is the MDX. I have not used PAS to read MDX but provided the MDX generates the columns I showed above then PAS will be able to read it. The PEEK statement shows what data is being passed to PAS.

 

Your latest MDX generates

 

     [Measures].[KPI2_ACT]                                

    1 78.16%

 

As you see it is missing two columns and the value includes the % sign which makes it invalid as a number.

 

Also you are using the LSS CREATE command. To the best of my knowledge this is valid only when reading flat files. When reading a relational database you use the SQL to manipulate field names, e.g. select salesval as KPI1_ACT. I suspect this limitation also applies to MDX.


Viewing all articles
Browse latest Browse all 10022

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>