Hi Jag, Thanks for the update!!! below is my scenario, I'm having the table Trans_month(column) which is in date format (yymmn6.)--> ex :201810. And im trying to run the below code/logic to extract the data. %let runasofdate = 20181001; options mprint mlogic symbolgen; %put &runasofdate.; data x; dt = symget ('runasofdate'); rndt = cats("'",dt,"'"); call symput ('rndt',rndt); mnth = substr(dt,1,6); call symput('m_key',strip(mnth)); run; data _test; set PARTY_PROF; where tran_month=&m_key.; run; while running the above code im getting nil records ,even though im having the data in the main table. Regards, Ashok Arunachalam
... View more