Using *HIVAL

30 pts.
Tags:
Free Format
RPG IV
Can I use *HIVAL in Free? (e.g. SetGT (*Hival) Rcd01;) Will this statement position the file cursor after the last record? Thanks. RE

Answer Wiki

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

Yes, you can use *HIVAL in /Free. As far as I know, if the operation code is supported in free, then all of its functions are too, and in some cases, even more (for example, the file operations for random record processing such as CHAIN, SETLL, SETGT don’t require a defined key list. You would simply include the list of key fields in the parenthesis for Factor 1. It is things like this that make free format much better than fixed).

In your example, if Rcd01 is the name of a file or record format, then your syntax is correct and should position the file pointer at end-of-file.

Discuss This Question:  

 
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

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