
Partner - Creator II
2021-09-23
04:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using peek in a variable.
I have a qvd named TWHUIL962.qvd and there is a field called ASDT which is called As on date
I have to create a variable to store the maximum value of ASDT (As on Date) using the peek function.
Kindly help me out.
4,076 Views
1 Solution
Accepted Solutions

Specialist II
2021-09-23
06:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
if you want the max date in the file it would be like:
max_date:
load max(ASDT) as max_date
from <your table>
;
let vMaxDate = peek('max_date', 0, 'max_date');
drop table max_date;
4,049 Views
1 Reply

Specialist II
2021-09-23
06:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
if you want the max date in the file it would be like:
max_date:
load max(ASDT) as max_date
from <your table>
;
let vMaxDate = peek('max_date', 0, 'max_date');
drop table max_date;
4,050 Views
