BookmarkSubscribeRSS Feed
Hydro1
Fluorite | Level 6


Data river_flow;
  input dailyflow flowdate:date9. mymonth myday myyear quarterflow halfflow threequarterflow;
  format flowdate date9.; 
  datalines;
1360.66	01JAN1940	1	1	1940	420185.91	840371.83	1260557.74
1382.48	02JAN1940	2	1	1940	420185.91	840371.83	1260557.74
1392.40	03JAN1940	3	1	1940	420185.91	840371.83	1260557.74
1404.30	04JAN1940	4	1	1940	420185.91	840371.83	1260557.74
1392.40	05JAN1940	5	1	1940	420185.91	840371.83	1260557.74
1348.76	06JAN1940	6	1	1940	420185.91	840371.83	1260557.74
1313.06	07JAN1940	7	1	1940	420185.91	840371.83	1260557.74
1328.93	08JAN1940	8	1	1940	420185.91	840371.83	1260557.74
1348.76	09JAN1940	9	1	1940	420185.91	840371.83	1260557.74
1372.56	10JAN1940	10	1	1940	420185.91	840371.83	1260557.74
1221.82	11JAN1940	11	1	1940	420185.91	840371.83	1260557.74
1128.59	12JAN1940	12	1	1940	420185.91	840371.83	1260557.74
1221.82	13JAN1940	13	1	1940	420185.91	840371.83	1260557.74
4 REPLIES 4
novinosrin
Tourmaline | Level 20

What is your requirement?and what's the logic for the requirement and more info please

Hydro1
Fluorite | Level 6

I clearly stated what my goal is and provided a program with data that is almost there.  I don't think I can be any more specific.

novinosrin
Tourmaline | Level 20

@Hydro1 Thank you and I do not disagree. My mind seems dumb to not grasp the logic nor the requirement well. I am sorry, however I am sure somebody will respond with a much needed solution and hopefully sooner. Hang in there

Hydro1
Fluorite | Level 6

Yes. Sorry--I thought I had the text in the window.  My goal is to output the date at which 25% , 50%, and 75% of the total  annual volume of runoff is reach for each year in the dataset.  The dataset contains daily flow (volume in acre-feet) , date, and the previously computed values of Q25, Q50, and Q75.  The program contains the data and was slightly modified from that provided by HB.

 

Sincerely,

Hydro1

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 704 views
  • 0 likes
  • 2 in conversation