Results 1 to 25 of 25

Thread: COBOL forums

Threaded View

  1. #10

    Thread Starter
    Addicted Member
    Join Date
    Oct 2004
    Location
    youngstown, oh
    Posts
    202

    Re: COBOL forums

    ok thanks the code, there. and here's my output....
    VB Code:
    1. File  . . . . . :   QPRINT                           Page/Line   2/1
    2. Control . . . . .                                    Columns     1 - 78
    3. Find  . . . . . .
    4. *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+...
    5.           STUDENT NAME           NUMBER OF CREDITS          TUITION
    6. Johnson, Derek                           12                    $ 6300
    7. Murray, Susan                            11                    $ 5775
    8. Hartman, Tom                             13                    $ 6300
    9. Wilson, Lisa                             12                    $ 6300
    10. Browne, Dan                              18                    $ 6300
    11. Roberts, Doug                            16                    $ 6300
    12. Smith, Arlene                            08                    $ 4200
    ........

    now i have to add another heading. it has to have Date, Title, and Page #.

    this is what i came up with in class...
    VB Code:
    1. 0051.00        01   STUDENT-LINE-1.
    2. 0052.00             05 DATE-OUT                 PIC XX/XX/XX.
    3. 0053.00             05                          PIC X(24)  VALUE SPACES.
    4. 0054.00             05                          PIC X(15)  VALUE
    5. 0055.00                "STUDENT SUMMARY".
    6. 0056.00             05                          PIC X(11)  VALUE SPACES.
    7. 0057.00             05                          PIC X(13)  VALUE
    8. 0058.00                "PAGE NUMBER:".
    9. 0059.00             05 PAGE-OUT                 PIC ZZ9    VALUE ZEROS.
    10. 0060.00             05                          PIC X(15)  VALUE SPACES.
    ....and thsi si how it looks now...
    VB Code:
    1. Find  . . . . . .
    2.  *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+...
    3.  02/13/07                        STUDENT SUMMARY           PAGE NUMBER:   1
    4.  STUDENT NAME                     NUMBER OF CREDITS          TUITION
    5.  Johnson, Derek                          12                    $6,300
    6.  Murray, Susan                           11                    $5,775
    7.  Hartman, Tom                            13                    $6,300
    8.  Wilson, Lisa                            12                    $6,300
    9.  Browne, Dan                             18                    $6,300
    10.  Roberts, Doug                           16                    $6,300
    11.  Smith, Arlene                            8                    $4,200

    ....but how do i get a line in between the heading 1 (date page title) and heading -2 (name,credit, tutition) ??
    Last edited by jlbovo; Feb 14th, 2007 at 10:40 PM.
    --thanks for the help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width