One of my students asked me about writing a console program which could quickly browse the data from a dataset that was not in memory. It's fairly straightforward to -describe- the data on disk, and it was easy to write a program which can -list- part of the data by doing a quick preserve ---> use ---> list [in] ---> restore command. However, I wanted to see about writing a program to view the data in the browser (which a lot of people still like).
The problem is that the open browser window doesn't pause the program and the -restore- will proceed immediately and you won't see the data on disk. The only way I found of halting the loop was to do this klugy -display- _request() line to ask for user input.
Is there a better way to do this? Is there an existing program on SSC that browses non-memory data that I'm not aware of?
The problem is that the open browser window doesn't pause the program and the -restore- will proceed immediately and you won't see the data on disk. The only way I found of halting the loop was to do this klugy -display- _request() line to ask for user input.
Is there a better way to do this? Is there an existing program on SSC that browses non-memory data that I'm not aware of?
Code:
program brdisk syntax [namelist] [if] [in] using preserve qui use `using' br `namelist' `if' `in' di "Press Enter When Finished" _request(finish) restore end
Comment