×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

output only fields in subfile

output only fields in subfile

output only fields in subfile

(OP)
I have specified output-only fields in a subfile format, yet the fields appear in the input specs in the RPG program that uses the display file. Why is this?

I have even created a stripped-down test program with only one output-only field, no complex keyword combinations, nothing but WRITE to the subfile format and EXFMT to the control record format. But the output-only field still appears in the input specs of my RPG compile. This makes no sense.

RE: output only fields in subfile

(OP)
You have to realize that the subfile is not what you see on the display...it is a separate entity. You put records into the subfile and get records out of the subfile as whole records, regardless of the usage attribute (input only, output only, both input/output, hidden, etc.) and regardless of whether the field is selected (with an indicator) or not selected. The usage attributes and field selection control only the interaction between the subfile and the display when reading and writing the control record.

So your program can put data into the subfile and it comes back when you read the subfile, regardless of whether or not it ever went to the display.  

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close