why we cant write data to pf using cl program?

Tags:
CL
PF/LF
y we cant write data to pf using cl program?
ASKED: June 4, 2008  6:31 AM
UPDATED: June 29, 2010  11:28 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

The freeware run-time base option of <a href=”http://www.powercl.com/clf/aboutclf”>CL for Files (CLF)</a> provides for read/write/update/delete capability, from CL, with i databases (along with display and printer support).

Vendor response.

There is also a fee-based CL precompiler which provides enhanced productivity over the no-charge run-tme support (plus a few capabilities not supported by languages such as RPG, COBOL, and C).

The full command set of CLF can be found <a href=”http://www.powercl.com/clf/clfcommands”>here</a>. There is a charge associated with the precompiler and generation tool. There is no charge for the run-time provided commands.

Bruce Vining

=================================================

Hi,

There are ways of writing data to files from CL programs. You can use RUNSQLSTM or the QSHELL DB2 interface for example.

Regards,

Martin Gilbert.

===========================================================

You can’t write to PFs with CL because CL has no facility for database updates. That’s the flat answer.

CL isn’t written as a language to manipulate database values.

If you need to write to PFs, CALL a function that does it. That’s what CL does. Call into a database language program or run a function in Qshell as suggested above.

Tom

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Vatchy
    A CL program is basically a series of commands. Each command has a command processing program which can be either a CL or RPG program (or machine language but let's not get into that now). If you need the ability to write to a file, write your own command that calls a program to write to the file for you. That way, you can write the command the way you want it to be written, have it pass the parameters that you need passed, do the validation that you need it to do, and do the error checking that needs done when the record is written.
    1,410 pointsBadges:
    report
  • TomLiotta
    It can be difficult to judge how easy something might be for other. It's a tricky business. There are many systems that don't have the compiler products. That can make it interesting for some basic CL programmers to create clean commands. And there are many CL programmers who have no idea how to write RPG or even COBOL, much less C or anything else. (The first three AS/400s that I bought had no HLL compilers, though I knew how to program in all of them.) I haven't seen Bruce's commands, but I've sure seen enough of his comments over many years to feel comfortable with pretty much anything he provides. Still, your point does need to made. It applies in probably the majority of cases. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following