Finding number of records in a file, without reading the file in CL programming

145 pts.
Tags:
AS/400
CL Program
Hi, I have an Task to do the program in CL, to find number of records in a file, but I should not read that file. Can you please tell me how to proceed?

Answer Wiki

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

Hmmm, this sounds like a homework/class question.  We aren’t really here to do someone’s lessons for them, but I’ll provide a hint.  You are looking for a command that will get the file’s member information.  It will return data to variables in your CL program.

Discuss This Question: 3  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
  • pdraebel
    Looks like a task that learns you that CL commands can have different output options. For example to an output file.
    Learning from iSeries commands can be done by using the F4 prompt key plus F9 or F10 key to display optional parameters. Most OS commands have excellent help text. (Access with F1)
    2,895 pointsBadges:
    report
  • BeanBaggs
    You might want to look at CL cmd RTVMBRD command.
    220 pointsBadges:
    report
  • philpl1jb

    There is a search tool at the top of this page. In a few minutes you should be able to find the answer.

    49,960 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