Read records without declaring file in F-spec

285 pts.
Tags:
AS/400
F Spec
RPG Program
Is it possible to read records without declaring file in F-spec?

Software/Hardware used:
AS400

Answer Wiki

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

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
  • TomLiotta
    Yes, an RPG program can read files without needing F-specs. As Pradeep mentioned, you don't need F-specs for a file that is read into the program using embedded SQL. Similarly, you wouldn't need an F-spec if you used the SQL CLI (ODBC) APIs. Or if you accessed the EDRS server. Or if you called any of the _Rreadx() APIs. You use F-specs in order to use RPG language I/O. If you use I/O methods that are not RPG, you don't need F-specs. Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    Clarify the question. Do you mean using the native RPG command READ? Do you mean that there are no F-spec's or that the F-spec doesn't refer to the file actually used? If you put the question into some context, we might be able to help you solve your problem. Phil
    49,950 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