× 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.



Not possible. There is also no direct SQL capability in CL. You need to use something like RUNSQLSTM or STRQMQRY. The former cannot do SELECT statements but can do multiple statements from one source member. The latter is nice because you can run ANY SQL statement with it, and you can use substitution variables. In other words, you can "move the values to the respective fields in the file and then write the file" by using an INSERT statement in the QMQRY with substitution variables for each field - similar functionality to what you describe.
Of course, if the data you are writing to the file comes from another file, SQL can do it directly, either with an INSERT INTO somefile VALUES(SELECT some-fields FROM some-other-file...) in a RUNSQLSTM of QMQRY, or a suitable SELECT in a QMQRY with output to the new file with the *ADD option.


HTH
Vern

At 09:36 PM 2/25/2005, you wrote:

Hi all,



Is it possible to write records into a physical file or Logical file inside a CL program, without using SQL?

As like RPGLE, opening the file, moveing the valuse to the respective fields in the file and then writing the file... is this possible/?



Thanks

Siva.



---------------------------------
Do you Yahoo!?
 Yahoo! Mail - now with 250MB free storage. Learn more.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.