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

Processing your response...

Discuss This Question: 12 &nbspReplies

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

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

Are you asking about "getting more rows" or "getting multiple rows"? You use "multiple" in your question title and you show a multi-row FETCH; but your question says you can't get "more" rows.

What happens? You didn't tell us what your code does that is wrong. How do you know it isn't working?

I see things that don't make sense. For example, you have a FOR-loop indexed by I that has the number of FETCHed rows as a limit. But you increment I inside the loop which doesn't make sense. Then you do another multi-row FETCH inside the loop which really makes no sense. The loop doesn't seem to have any purpose.

But I'd normally assume that it's not a complete program anyway, so some sense might be obscured.

It reads a file named ACCPTH. I created it by running a DSPFD command for TYPE(*ACCPTH) to an *OUTFILE named ACCPTH. I have a number of files named LICKEYS, so the program is FETCHing those rows from the file 10 rows at a time.

It uses DSPLY to display the library (APLIB) that each LICKEYS file is found in; but you can use any name you want, or you can change it to use your file instead of ACCPTH.

I have a null-indicators array also coded. You probably don't need it, so you can delete those lines.

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

Processing your reply...

Ask a Question

Free Guide: Managing storage for virtual environments

Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!

Share this item with your network:

To follow this tag...

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