Unable to Increment the Variable in Data Tab
Posted: Wed Apr 13, 2011 2:40 am
Hi,
Am Using SQL to Pull data and the out put is single column and i name that varibale as 'vPlanNameSales' .Its a String and defined as 'Other'
My Aim :
Exporting Versions data to database tables.Will need to create a Subset of all versions present in Version Dim (May be 20 Versions) then Look in the database table and If it have 19 Versions then we should Load only the 20th version
Is to compare 'vPlanNameSales' with 'SUniqueVersionName' and if does not matches then Asciioutput should execute else skip:
Problem is When am using vPlanNameSales in a while loop its always pulling single record from the SQL Output.
In the IF Condition (SUniqueVersionName @<> vPlanNameSales) vPlanNameSales is always geting single value.
Here SUniqueVersionName is incrementing but vPlanNameSales is not incrementing.
When i place my AsciiOupt code Before WHile loop am able to get all vPlanNameSales values , but not when place in a While loop..
Can any one help me out please::::
Thank you
Am Using SQL to Pull data and the out put is single column and i name that varibale as 'vPlanNameSales' .Its a String and defined as 'Other'
My Aim :
Exporting Versions data to database tables.Will need to create a Subset of all versions present in Version Dim (May be 20 Versions) then Look in the database table and If it have 19 Versions then we should Load only the 20th version
Is to compare 'vPlanNameSales' with 'SUniqueVersionName' and if does not matches then Asciioutput should execute else skip:
Problem is When am using vPlanNameSales in a while loop its always pulling single record from the SQL Output.
In the IF Condition (SUniqueVersionName @<> vPlanNameSales) vPlanNameSales is always geting single value.
Here SUniqueVersionName is incrementing but vPlanNameSales is not incrementing.
When i place my AsciiOupt code Before WHile loop am able to get all vPlanNameSales values , but not when place in a While loop..
Can any one help me out please::::
Thank you
Code: Select all
[b]DATA:TAB[/b]
subsetsize = SubsetGetSize(sVerDim, subSet);
sVer=1;
While(sVer <= subsetsize);
###Test is the Subset having 30 Versions#########
sSubsetName = SubsetGetElementName('version','Test', sVer);
sVerName = AttrS( 'Version', sSubsetName , 'Attribute Text' );
SUniqueVersionName = sVerName | 'D';
IF(SUniqueVersionName @= vPlanNameSales);
###Here My Other Execute Process will come########
ASCIIOutput('C:\Documents and Settings\user\Desktop\Evening1.txt', vPlanNameSales );
Endif;
sVer = sVer+1;
End;