ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

difference b/n SKIPA and SPACEA

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • difference b/n SKIPA and SPACEA

    Hi All,

    Can anyone explain me the diff b/n SKIPA and SPACEA?
    Can we see the difference in the spool file that was generated?

    Thanks,
    Susan.

  • #2
    Re: difference b/n SKIPA and SPACEA

    SPACE(x)(Y) advances Y amount of lines, one by one
    SKIP(x)(Y) advances to line number Y.
    where x = B(efore) or A(fter) executing to operation.
    Regards

    Kit
    http://www.ecofitonline.com
    DeskfIT - ChangefIT - XrefIT
    ___________________________________
    There are only 3 kinds of people -
    Those that can count and those that can't.

    Comment


    • #3
      Re: difference b/n SKIPA and SPACEA

      Just a little note:
      eg. If you use SKIPB(16):
      1. If you have printed line 10. It will jump to line 16 and print.
      2. If you have printed line 18. It will jump to line 16 on the next page and print.
      Regards

      Kit
      http://www.ecofitonline.com
      DeskfIT - ChangefIT - XrefIT
      ___________________________________
      There are only 3 kinds of people -
      Those that can count and those that can't.

      Comment


      • #4
        Re: difference b/n SKIPA and SPACEA

        Kit........

        Thanks for info.understood clearly.
        And tell me, Can we able to see the SKIP and SPACE opeartions in the spool file generated?i heard it can be seen only when taken print out.

        Comment


        • #5
          Re: difference b/n SKIPA and SPACEA

          You cannot see what has been used once the the SPLF has been produced. But with difficulty, you can see where there are blank lines.
          Code:
                                                                  Display Spooled File                                                        
           File  . . . . . :   OEI525R1                                                                             Page/Line   1/2           
           Control . . . . .                                                                                        Columns     1 - 130       
           Find  . . . . . .                                                                                                                  
           *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+....0....+....1....+....2....+....3
          Using the control field, you can type in P to advance to page nr and +1 to advance 1 line. The page/line numbers on the right side tell you where you are. So if these increment to the next page nr, you know you've had a skip or an overflow condition (at the very least).
          Hope this helps.
          Regards

          Kit
          http://www.ecofitonline.com
          DeskfIT - ChangefIT - XrefIT
          ___________________________________
          There are only 3 kinds of people -
          Those that can count and those that can't.

          Comment


          • #6
            Re: difference b/n SKIPA and SPACEA

            ok thank u

            Comment

            Working...
            X