Re: Important tip for posting JSL code to this forum
Mar 3, 2011 8:03 AM(954 views)
I have also encountered problems posting code. In my case the delimiters seemed to work, but only sometimes. I left them there anyways, but it was only after much trial-and-error that I realized that part of the code I was pasting on the post has double quotes
dtf<< Add Filter(columns( :SET ),Where( :SET == YYYY" ); (See original post http://support.sas.com/forums/message.jspa?messageID=51336#51336)<-->
(By the way, I also had issues getting this link to post and not get truncated, and using the delimiters shown was just about the only thing that worked. Is there a way to have the delimiters NOT show up while allowing the text of the link to show?)
Note that in the line above I do NOT have double quotes before YYYY. If I put the double quotes BEFORE YYYY then everything after the double quotes gets deleted. Here is the strange part, I tried putting any character between the equal sign and the double quotes... problem solved but the character (in this case the capital letter T) shows up. :SET== T "YYYY"
After more goofing around I realized that the combination of TWO equal signs and a double quote was causing the issue.
But things get stranger... in the post I reference above I have the problematic line in question embedded within a paragraph, and in that case there is no truncation of text:
(begin quote)[...]filter would add condition for :SET=="YYYY" while the pre-existing condition :SET=="XXXX" is still in effect.(end quote)
Does anyone know what is going on and why the posted text behaves this way?