AS400 report issue

45 pts.
Tags:
AS/400 Reports
RPG36
Hi, RPG36 programs which generates reports wherein I can some blank lines printed , but the program as such does not print the blank line separately through the program. Am not getting any clue why this blank line is printed , verified the Printer where other similar reports are printed without any blank lines between each line of the report. Tried to avoid this by checking the program through Debugging and code review but not able to figure out the root cause for this error.

Software/Hardware used:
AS400

Answer Wiki

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

Check you “O” specs for the SPACE & SKIP fields.
If you cannont find it, post your code and we can check it out.

Discuss This Question: 13  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
  • philpl1jb
    Charlie Brown has identified the most likely issues but there can be printer issues. Do you get the blank lines on every printer? Do you get the blank lines only when long lines are printed? Phil
    51,235 pointsBadges:
    report
  • Barathr11
    Thank you Phil, But i see that the same printer is printing similar kind of report without any blank spaces, but i am not sure that blank line printing because of long width data. Pls help me whether is there any possibility of indicator causing this blank line printing, reason being i did thourough check on the code via debug and i did not see any place the O spec is executed to print the blank line between each record printing. Thanks Again, Barath
    45 pointsBadges:
    report
  • CharlieBrowne
    Post your code. At this point we need to see it to help you. All we are doing now is guessing
    41,380 pointsBadges:
    report
  • philpl1jb
    So you don't know if this report ever printed the way you want it to. As Charlie Brown said, does the O spec - contain 2 space( before or after) (the 2 would be a double space) or - a space before and space after (with a space after one line and a space before the next you would get a double space) Is the F spec declaring this printer file different from those on other programs? Wider? Phil
    51,235 pointsBadges:
    report
  • Barathr11
    [...] One member is having AS/400 reporting issues, so CharlieBrowne and Philpl1jb are trying to help [...]
    0 pointsBadges:
    report
  • TomLiotta
    i did not see any place the O spec is executed to print the blank line between each record printing. Programs don't need to print blank lines between record printing. Actually, programs rarely need to print blank lines at all. What programs usually do is print a record line and include a control character with that record that the printer interprets to skip a line either before or after record printing. Blank lines aren't printed. The printer simply advances an extra line based on control characters. You wouldn't see it in debug. We need to see the source for the O-specs of the program before any good answer is possible. Tom
    125,585 pointsBadges:
    report
  • Barathr11
    Apprecaite all of your time in this, i am also in same phase what Tom has mentioned reg Blank line printing in the report. Point#1: While debug i am not seeing blank lines are printed through O spec Point#2: Also various o/p of blank space is printed in the report might be because of some control not being set for each line printing it seems.... With the help of another resource the portion of printing column separators/underlines are controlled by additional indicators, now the report is not printing any more blank spaces(either one / two) between each record. Thanks Again, Barath Chennai-India
    45 pointsBadges:
    report
  • Barathr11
    [...] 1. Philpl1jb, CharlieBrowne, and TomLiotta gave their insight into an AS/400 report issue. [...]
    0 pointsBadges:
    report
  • Barathr11
    Hi All, Appreciate all of your input, due to various constraint i could not communicate the code used. It seems that there are some indicators causing this issue leads to printing BLANK line between each row during its printing. There is a place where speicifc indicators are commented in O specification. Thanks, Barath
    45 pointsBadges:
    report
  • philpl1jb
    If you could post the O spec's we might be able to identify likely issues.
    51,235 pointsBadges:
    report
  • Barathr11
    After changing those identified indicators OFF status in the O specification the printing of BLANK line between each row is stopped. I am just not sure on this fix which was handled by another consultant.
    45 pointsBadges:
    report
  • CharlieBrowne
    Look at the original program source and find the lines in th eO specs that reference those indicators. Or in the C specs to see if those indicators are used to condition outpuit. That should solve your mystery
    41,380 pointsBadges:
    report
  • philpl1jb
    indicators can also effect processing. So changing a value of an indicator might do more than control double spacing.
    51,235 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