Command Reference : Function Reference : Function Reference: P
  
 
@pagefreq
Frequency of the current workfile page.
Syntax: @pagefreq
Return: string
Returns a string containing the frequency of the active page:
 
“Sec”, “5Sec”, “15Sec”, “30Sec”
Seconds in intervals of: 1, 5, 15, or 30 seconds, respectively, with optionally specified days of the week and start and end times during the day appended in parentheses.
“Min”, “2Min”, “5Min”, “10Min”, “15Min”, “20Min”, “30Min”
Minutes in intervals of: 1, 2, 5, 10, 15, 20, or 30 minutes, respectively, with optionally specified days of the week and start and end times during the day appended in parentheses.
“H”, “2H”, “4H”, “6H”, “8H”, “12H”
Hours in intervals of: 1, 2, 4, 6, 8, or 12 hours, respectively.with optionally specified days of the week and start and end times during the day appended in parentheses.
“D(s, e)”
Daily with arbitrary days of the week. Specify the first and last days of the week with integers s and e, where Monday is given the number 1 and Sunday is given the number 7.
“D5”
Daily with five days per week, Monday through Friday.
“D7”
Daily with seven days per week.
“W”
Weekly
“T”
Ten-day (daily in intervals of ten).
“F”
Fortnight
“BM”
Bimonthly
“M”
Monthly
“Q”
Quarterly
“S”
Semi-annual
“A”
Annual
“2Y”, “3Y”, “4Y”, “5Y”, “6Y”, “7Y”, “8Y”, “9Y”, “10Y”, “20Y”
Multi-year in intervals of: 2, 3, 4, 5, 6, 7, 8, 9, 10, or 20 years, respectively.
Examples
The command
string frq = @pagefreq
saves the frequency string in the string object FRQ.
The program commands
%frq = @pagefreq
pagecreate(page="newpage") {%frq} 2015 2023
extracts a string with the frequency of the active workfile page, then uses the frequency information to create a new page named “Newpage” with observations from 2015 to 2023 using the same frequency.
Cross-references
See also @pageids, wfcreate, and pagecreate.