× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Dhatha,

a couple things come to mind.

1. why the restriction on using SQL?  even if you don't have the SQL
product on your machine, you can use one of several 'workarounds'
available:
 a. use Martin Rowe's EXCSQL.  scan the archives for that command, and you
should find a link to download it.  you can build your sql select statement
on the fly, and execute it using the command.
 b. use Query Manager 400.  create your select statement interactively and
write it to a source member/file.  run the CRTQMQRY command on the source
member to 'compile' it (in qtemp?), then run STRQMQRY to run the query.

2.  create a temporary LF type source member with the desired fields and
compile it in qtemp.  then do a RUNQRY *N QTEMP/filename on it.

hth,

rick


-------original message--------
Hello All,

Help Please.  I need to create a subset of a physical file with some of the
columns stripped off the physical. I need to do this dynamically without
using SQL . the OPNQRYF doesn't seem to be helpful in this respect.

When I use Query/400, the column selection is static. Everytime if you want
to change the column, you have to go into query and deselect those selected
columns and select the new one. How do I do this dynamically (on the
command
line) ?

ANy help would be really appreciated.

Thanks in advance,
D


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.