f

#### how to get a value in between

```hello all ,

I have lab units value like these 10^9/L, 10^12/L  I am trying to insert
{Super  in front of the ^ so that it appears the way I want it in the Report
for that I using Code like this but this is not enough as it is messing up
the the 10^12/L

if Substr(lbstresu,3,1)  = "^"
then lbstresu1 = Strip(Substr(lbstresu,1,2))  !!"^{super
"!!Strip(Substr(lbstresu,4,1))!!"}" !!Strip(Substr(lbstresu,5)) ; */;

if lbstresu1  ^= " "   then lbstresu  = lbstresu1;

Any Idea how to capture the values inbedtween ^ and /L , I do not think I
can write too many if conditions using the hard coded values

thanks for your time and help
```
 0
proccontents (843)
5/29/2008 7:11:48 PM
comp.soft-sys.sas 142828 articles. 3 followers.

0 Replies
371 Views

Similar Articles

[PageSpeed] 47

Similar Artilces:

Getting values in between the values of a vector?
Say I have a vector that's like this: [-6 -3 0 3 6] How can I get it get the number in between each of the two values to return something like: [-4.5 -1.5 1.5 4.5] Is there a built-in function that can do this? I'm asking because I'd like to avoid a loop if possible (but I'm thinking it's the only way). Thanks! "Brandon Rodriguez" <coasters2k@yahoo.com> wrote in message <gsfp69\$19b\$1@fred.mathworks.com>... > Say I have a vector that's like this: > > [-6 -3 0 3 6] > > How can I get it get the number in between each of the two v...

How does Python get the value for sys.stdin.encoding?
I thought it was hard-coded into the Python executable at compile time, but that is apparently not the case: [ron@mickey:~]\$ python Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import sys;print sys.stdin.encoding UTF-8 >>> ^D [ron@mickey:~]\$ echo 'import sys;print sys.stdin.encoding' | python None [ron@mickey:~]\$ And indeed, trying to pipe unicode into Python doesn't work, even though...

Getting SAS to Display Combinations of Values not in the Data
Hello Everyone, =A0 I have a question about how to get=A0SAS to display values not in the data = when making frequency tables. I want to use Proc Report and the ODS msoffic= e2k destination to make Word tables=A0that tabulate the relationship betwee= n race and whether or not a given adverse event (e.g. neutropenia) was drug= related. Whether or not a given adverse event was drug related was assesse= d using the following categories: definitely, probably, possibly, unlikely,= and unrelated.=20 =A0 I=A0need to make tables that display all levels of drug relationship. The t= ables will display...

Getting SAS to Display Combinations of Values not in the Data #2
Hi Mike, Mark, Carol, and "Data _Null_", =A0 Thanks for your helpful responses. I've been trying to use preloadfmt to di= splay the missing categories. I've pasted the code I have=A0 below.=20 =A0 One problem I've run into is that I don't really want to tabulate all possi= ble combinations. I just want to tabulate all possible relationships betwee= n study drug and race where patients actually experienced a given adverse e= vent.=20 =A0 Is there any way to make preloadfmt and completerows display all possible c= ombinations when ae =3D "Yes" but not otherwis...

Re: Getting SAS to Display Combinations of Values not in the Data #4
You may find these papers helpful in understanding the data structure you need to produce your output; Macro CheckAll a macro to produce a frequency of response data set from multi-response data http://www2.sas.com/proceedings/sugi22/POSTERS/PAPER236.PDF Macro ShowComb a macro to produce a data set with frequency of combinations of responses from multi-response data http://www2.sas.com/proceedings/sugi22/POSTERS/PAPER204.PDF SAS community wiki page: http://www.sascommunity.org/wiki/Processing_Check-All-That-Apply Ron Fehd the macro maven CDC Atlanta GA USA RJF2 at cdc dot gov > -...

How to get inimum value from 16 values available
Dear all, I've a specific problem. Hope some one will answer me. I have a color image, say img1, of 512 X 512 size in CIELAB space. For each pixel in img1, I've 16 sample pixels approximated as follows (E1 is another image obtained by some process) Lp1(x,y) = img1(x,y,1); ap1(x,y) = img1(x,y,2) + E1(x,y); bp1(x,y) = img1(x,y,3); Lp2(x,y) = img1(x,y,1); ap2(x,y) = img1(x,y,2) + E1(x,y)/sqrt(2); bp2(x,y) = img1(x,y,3) + E1(x,y)/sqrt(2); Lp3(x,y) = img1(x,y,1); ap3(x,y) = img1(x,y,2); ...

get a value in the servlet with get, but null with post
Hi, I am getting a value for a hidden field in my servlet when the method of the form is GET. But when I change it to POST, I get a null value for the same field, all things remaining the same. Does anybody have any idea why this could be happening? Thanks, Shiv "Shiv" <ss_panda@hotmail.com> wrote in message > Does anybody have any idea why this could be happening? Not without seeing some code... -- Wendy in Chandler, AZ try to find article named "High-Level Network Programming ", here is one part: ".... Consider the following HTML form: ...

how to get approximate differential value from pure mesh values
I have function numerical values on a uniform mesh points. But I do not know the explicit form of this function. Now the approximate value of first or second order derivative is wanted. Does there exist a Matlab funtion to do this? Otherwise any suggestions are welcome. suniuin wrote: > I have function numerical values on a uniform mesh points. But I do > not know the explicit form of this function. Now the approximate > value of first or second order derivative is wanted. > > Does there exist a Matlab funtion to do this? Otherwise any > suggestions are welcome. finite di...

how to catch a value from radio buttom getting its value from mysql?
Hi, this is a newbie question. How can I catch the selected radio value from a form that is feed by the mysql database? EX.: <input type="radio" name="myname" value="<?php \$myvalue[3] ?>"> Value returns the last element of the array \$myvalue[3] instead of the selected value. How can I change this? Thanks in advance for any help, Guillermina echo? <input type="radio" name="myname" value="<?php echo \$myvalue[3] ?>"> PWT "gmanon" <guillermina@nyc.rr.com> wrote in messa...

Must GET/POST Parameters Have Values? (And What is the Syntax for GET, If NOT)
Are GET and POST parameters required to have values, i.e. are either of these legal? http://www.mydomain.com/index.php?this&that http://www.mydomain.com/index.php?this=&that= In my application, I have a GET/POST parameter that is significant just by its presence (it doesn't need a value), and rather than say this=1&that=1 I was wondering if it is legal to specify them without values. Thanks, Dave. David T. Ashley wrote: > Are GET and POST parameters required to have values, i.e. are either of > these legal? > > http://www.mydomain.com/index.php?this&that > > http://www.mydomain.com/index.php?this=&that= > > In my application, I have a GET/POST parameter that is significant just by > its presence (it doesn't need a value), and rather than say this=1&that=1 I > was wondering if it is legal to specify them without values. > > Thanks, Dave. yes thats ok, but they need an equals sign at the end still like in your second example, i havent tried it without, also empty(\$_GET['this']) this is fine if you simply want to see if it doesnt have another value, i use stuff like this for links to member logins, that way they can be returned back to the same page after a successful login and ensure everything was there that was before. Flamer. I've used like your first example (no equals signs) with no problems many times. All one must do to see if it is there is: isset(\$_GET['this']) I...

Get values
Hello, I want to get the values from 8 CSV files. For this I created a loop. My problem is how to place each file data into a different variable. In this moment all my files data are going to the same variable, series. Here is my code: files = {'f1' 'f23' 'f15' 'f30' 'f4' 'f12' 'f14' 'f8'}; % Load files nFiles = size(files, 2); for iFile = 1:nFile % Create file path filePath = strcat('Assets/Data/', file, '.csv'); % Open CSV file file = fopen(filePath); if (file == -1) error('The file was not found'); end % Read data series = textscan(file, '%s %s %f %f %f %f %f', 'delimiter', ','); % Change dates format from YYYY.MM.DD to MM/DD/YYYY series{1} = cellstr(datestr(datenum(series{1}, 'yyyy.mm.dd'), 23)); % Close CSV file fclose(file); end Thanks, Miguel shapper wrote: > > Hello, > > I want to get the values from 8 CSV files. For this I created a loop. > My problem is how to place each file data into a different variable. > In this moment all my files data are going to the same variable, > series. > > Here is my code: > > files = {'f1' 'f23' 'f15' 'f30' 'f4' 'f12' 'f14' 'f8'}; > > % Load files > nFiles = size(files, 2); > for iFile = 1:nFile > > ...

How to get a Value

How to get values?
Hello If I have a function y=f(x), is there any way to find x values for known y?? For example I have x=0:1:20; y=x; plot(t,x) I am taking x values from 0 to 20. Is it possible to find value for x if y=2.1?? Thanks in advance Kota. S Kota wrote: > > > Hello > If I have a function y=f(x), is there any way to find x values for > known y?? > For example I have > x=0:1:20; > y=x; > plot(t,x) > > I am taking x values from 0 to 20. Is it possible to find value for > x > if y=2.1?? > > Thanks in advance > Kota. HELP FUNCTION HELP INLINE HELP SOLVE H...

how to get the value?
Hi, I have a data file like: conf.dat: abst0012328\$y\$m\$d.out.asc~e~b~c In my shell script: y=2004 m=10 d=14 I got the file name from data file: filename=abst0012328\$y\$m\$d.out.asc actually what I really want is: filename=abst001232820041014.out.asc How can I get it? Thanks, Carl On 2004-10-14, linlin107 wrote: > Hi, > > I have a data file like: > conf.dat: > abst0012328\$y\$m\$d.out.asc~e~b~c > > In my shell script: > y=2004 > m=10 > d=14 > > I got the file name from data file: > filename=abst0012328\$y\$m\$d.out.asc > > actually what I really wan...

Get value from table upon changing value in combo box.
I'm working on a form where a combo box gets its list of values from a table. That same table also contains some "default notes" in other fields. My task is simple, but I'm having a hard time working it out. Once an option is selected in the combo box, I want to run (a macro?) that will grab the appropriate default notes from the table, and load them into the form in the various Notes fields. I've got a query set up that'll narrow the table down to the option selected in the combo box, but when I use the SetValue action in the macro, I get an error saying that I'...

Re: Difference Between PC SAS and UNIX SAS but getting off topic
Naveen wrote: "Long/short: Get to know and be very nice to your local systems administrator. Then PC SAS = UNIX SAS" meaning that the system admin controls the resources available to your jobs and you want the admin to like you. This brings to mind a tale of back in the days when jobs were submitted on decks of punch cards. Long jobs might fill a card box but smaller ones were held together with rubber bands. At the computing center in Ames, Iowa, supposedly if you wanted special treatment, you might slip a piece of hard candy under the rubber band. Nat Wooding Environmental Specialist III Dominion, Environmental Biology 4111 Castlewood Rd Richmond, VA 23234 Phone:804-271-5313, Fax: 804-271-2977 NMani <naveen.manivanna n@GMAIL.COM> To Sent by: "SAS(r) SAS-L@LISTSERV.UGA.EDU Discussion" cc <SAS-L@LISTSERV.U GA.EDU> Subject Re: Difference Between PC SAS and UNIX SAS 06/06/2008 02:02 PM Please respond to NMani <naveen.manivanna n@GMAIL.COM> On Jun 5, 1:28 pm, suthakari...@yahoo.com (Suthakar Iyer) wrote: > Hi, > Whether the...

Why am I not getting a value?
(Please excuse the rookie question) Why don't I get the value of "windows" in my file? My xml file is located in http://www.otima.ca/XML/auto.xml and the xslt file is http://www.otima.ca/XML/auto.xslt. Much appreciate the assistance! Ian On 31 Jan 2005 21:12:56 -0800, ian.rutgers@gmail.com (Ian) wrote: >Why don't I get the value of "windows" in my file? My xml file is >located in http://www.otima.ca/XML/auto.xml and the xslt file is >http://www.otima.ca/XML/auto.xslt. Your www server is sending your xslt resource with a mime type of text/plain. Reconfigure your server to send the correct mime type. -- Rex Hi Jan, I have the same issue if I do this on my local HD. What do you suggest? Thank you, Ian Jan Roland Eriksson wrote: > On 31 Jan 2005 21:12:56 -0800, ian.rutgers@gmail.com (Ian) wrote: > > >Why don't I get the value of "windows" in my file? My xml file is > >located in http://www.otima.ca/XML/auto.xml and the xslt file is > >http://www.otima.ca/XML/auto.xslt. > > Your www server is sending your xslt resource with a mime type of > text/plain. > > Reconfigure your server to send the correct mime type. > > -- > Rex Ian wrote: > Why don't I get the value of "windows" in my file? My xml file is > located in http://www.otima.ca/XML/auto.xml and the xslt file is > http://www.otima.ca/XML/auto.xslt. Can you explain in detail what...

Re: Difference Between PC SAS and UNIX SAS but getting off topic #2
I still use the word "cards" rather than "datalines" in SAS programs to = indicate inline data; it does remind me how much easier life is than = when we had to type our SAS/SPSS programs up using punched cards. =20 AMES! What a coincidence- I was in Iowa City at the same time! Nat, are = you from Iowa? I came to Iowa City from the Boston area, and = essentially never left. Mary Howard Research Assistant III Dept. of Ophthalmology Univ. of Iowa Hospitals and Clinics ----- Original Message -----=20 From: Nat Wooding=20 To: SAS-L@LISTSERV.UGA.EDU=20 Sent: Friday, June 06, 2008 1:18 PM Subject: Re: Difference Between PC SAS and UNIX SAS but getting off = topic Naveen wrote: "Long/short: Get to know and be very nice to your local systems administrator. Then PC SAS =3D UNIX SAS" meaning that the system admin controls the resources available to your = jobs and you want the admin to like you. This brings to mind a tale of back in the days when jobs were = submitted on decks of punch cards. Long jobs might fill a card box but smaller ones = were held together with rubber bands. At the computing center in Ames, = Iowa, supposedly if you wanted special treatment, you might slip a piece of = hard candy under the rubber band. Nat Wooding Environmental Specialist III Dominion, Environmental Biology 4111 Castlewood Rd Richmond, VA 23234 Phone:804-271-5313, Fax: 804-271-2977 NMani ...

Re: Difference Between PC SAS and UNIX SAS but getting off topic #3
Mary I was at NCSU and left in 1973. One of the young stat profs, Ron Gallant, if memory serves, came up with the Ames story. And I, too, do not recall the days of punched cards at all fondly. 1) you had to wait for a job to be read in. 2) cards became damaged on the edges from wear and had to be replaced regularly 3) you could drop the deck and scramble it. There were ways around this but they were imperfect 4) I had one experience with a new card reader which, upon encountering a damaged card, made you think that it was a different card that was the problem and one or more of your cards from that was read through the reader was/were never seen by the system. 5) try inserting new characters between columns on a punch card. There are more of these but I would rather not remember them. Nat vironmental Specialist III Dominion, Environmental Biology 4111 Castlewood Rd Richmond, VA 23234 Phone:804-271-5313, Fax: 804-271-2977 Mary <mlhoward@AVALON. NET> To Sent by: "SAS(r) SAS-L@LISTSERV.UGA.EDU Discussion" cc <SAS-L@LISTSERV.U GA.EDU> Subject Re: Difference Between PC SAS and UNIX SAS but getting off topic 06/...

how to get a matrix which its value inside this matrix is random value between -5 and 5?
dear all sorry just now put a blur message. what i mean just now is i would like to get a matrix which its values inside this matrix is random values between -5 and 5. thanks zhiyuan help rand ...

SortedMap: getting value for largest key less or equal a given value...
I've got an approach like the following, but I'm not entirely happy with it. (see embedded comments) Error checking left out only for brevity-of-post's sake. <sscce> class StepFunction<K,V> { SortedMap<K,V> m_map = new TreeMap<K,V>(); public void put(K k,V v) { m_map.put(k,v); } // for demo-fill /** @return the value for the largest key in the map that is less OR equal to the given parameter. */ public V value(K k) { // not really correct for generic use. In my usecase, K is // actually Long, so I just ...

Re: How to get the location of SAS code in the same SAS code thru #4
I use a macro from Frank DiIorio, CodeCrafters, Inc. that rely on SAS Dictionary Tables: %macro source_code/store; %global source_code; proc sql noprint; select XPath into :Source_Code separated by ' ' from dictionary.extfiles where fileref like "#LN00006" ; quit; %mend; The store is optional since I like to store compiled macros in a single location and call in with a mstored and sasmstore= options. I just add the following to my code to get a footnote indicating the full path and name of code submitted: %source_code; footnote1 "SOURCE CODE: &source_c...

Re: Read SAS date from log/turning it into SAS datetime value #2
Hi Richard, Rich The datestyle Rich0850 finds, occurs in the log produced by a batch-sas session - and doesn't appear on an interactive-sas session log. Where you can anticipate the use for later parsing of the log, I would reccommend - as Richard (Richard A. DeVenezia <radevenz@IX.NETCOM.COM>) did - insert into the autoexec, a statement to generate a more-easily read datetime. In all my sessions, (keeping altlogs of all interactive sessions has proved very very useful, time and again) I have this statement at the end of the autoexec....... %put starting (contract/project/applicatio...

Need help to get the amplitude of a wave file ( need to get the highest value )
Recently I start to find a solution to my research about audio analyzing. I need to get the frequency level of a wave file and the amplitude. can any one help me ? dinuwan.adg@gmail.com wrote: > Recently I start to find a solution to my research about audio analyzing. I need to get the frequency level of a wave file and the amplitude. can any one help me ? > WHAT is your goal? On Tue, 2 Sep 2014 22:40:43 -0700 (PDT), dinuwan.adg@gmail.com wrote: Hi, >Recently I start to find a solution to my research about audio analyzing. I don't understand the meaning of...

Web resources about - how to get a value in between - comp.soft-sys.sas

GOP Plotting To Take Down Donald Trump, Claims The Primary And Caucus Votes Do Not Count
Donald Trump has been the front runner in the presidential nomination race almost since he announced his bid for the White House. As we grow ...

Apple signs up for Google's cloud services: Re/code
(Reuters) - Apple Inc recently started using Google's cloud service even as it simultaneously builds its own data centers to reduce its reliance ...

GDC 2016: Intel has no plans to build or sell a virtual reality headset
Intel has no plans to build a virtual reality (VR) headset, and definitely no designs on selling one to consumers. Kim Pallister, Director, ...

Frank Sinatra Jr. dies at 72 from cardiac arrest
The son of a singing icon, Frank Sinatra Jr., died from a cardiac arrest on Wednesday. He was 72. Sinatra Jr. continued his father's singing ...

Woman Who Buried Baby Alive Gets 14 Years in Prison
A woman who buried her newborn daughter alive in a Los Angeles suburb has been sentenced to 14 years in state prison

Which Xbox 360 Games Are Free This Week On Xbox Live? Which Games They Are, And How To Get Them
If you’re an Xbox Live member, you already know that Microsoft gives free Xbox games away to members every week. The Xbox games vary week to ...

Fed Now Foresees Fewer Interest Rate Increases During 2016
Fed now foresees fewer interest rate increases during 2016

Pennsylvania man to plead guilty to hacking celebrities' email, iCloud accounts
By Piya Sinha-Roy LOS ANGELES (Reuters) - A Pennsylvania man has agreed to plead guilty to a felony computer hacking charge after authorities ...

Jared Fogle, Former Subway Spox, Admitted Child Sex Predator, Assaulted In Prison
Jared Fogle, long time Subway spokeman who bragged how he lost an insane amount of weight while living on the Subway diet, was assaulted in prison ...