THANKS GUYS!
I figured it out...including what if I had an odd number of records....I'm working on a new one and I'm sure I will have questions........
Dimandja And Slade
Thank-You...I understand...And I am so happy...That is sort of what I was thinking, but I was making it harder than it is.....!!!!!
I feel like I started the first COBOL war online...grin
OPTIONS MAIN
IDENTIFICATION DIVISION.
PROGRAM-ID. REPORT1.
* PROGRAMER:
* DATE WRITTEN:
** THIS PROGRAM PRINTS A REPORT
* WITH COLUMN HEADINGS WITH TWO
* RECORDS ON EACH LINE
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
SOURCE-COMPUTER. IBM-PC...
...the second one somewhere.....It skips over the second row without printing it....
OPTIONS MAIN
IDENTIFICATION DIVISION.
PROGRAM-ID. REPORT1.
* PROGRAMER:
* DATE WRITTEN:
** THIS PROGRAM PRINTS A REPORT
* WITH COLUMN HEADINGS WITH TWO
* RECORDS ON EACH LINE...
I have to have 2 sets of names in order to print two first names, two last names, and two extentions on each line printed on my report ...output should look like this.............
Last Name First nam Ext Last Name First nam Ext
Auston Bob 4566Alford John 3333
and so on
erba,
Thank you for your help, but I can't use Go statements. this is the format of the output expected...
col headings are
Last Name First Nam Ext Last Name First Nam Ext
Aston bob 4554 Alford James 5566
...http://personal.bhm.bellsouth.net/bhm/j/u/judmc/
here is a simple example.....
@OPTIONS MAIN
IDENTIFICATION DIVISION.
PROGRAM-ID. PATLIST.
* PROGRAMMER: Me
* DATE WRITTEN: 08/21/2002
* DATE DUE: 09/05/2002
* THIS PROGRAM PRINTS A PATRON ADDRESS LIST
* USING...
This is sample code to print out a 5 by 6 array of lotto numbers...I'm not sure if this is what you need...
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <iostream.h>
void GenerateNumbers( int lotto[][6] );
main()
{
int lotto[5][6], r, c;
srand(( unsigned )...
Well, here is a sample that generates a 5 by 6 array...aka lotto drawing....I'm not sure if this is what you are asking for......
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <iostream.h>
void GenerateNumbers( int lotto[][6] );
main()
{
int lotto[5][6], r, c...
...output report with my column headings??? I'm pulling my hair out now.....!!!
@OPTIONS MAIN
IDENTIFICATION DIVISION.
PROGRAM-ID. REPORT1.
* PROGRAMER:
* DATE WRITTEN:
** THIS PROGRAM PRINTS A REPORT
* WITH COLUMN HEADINGS WITH TWO
* RECORDS ON EACH LINE...
...output report with my column headings??? I'm pulling my hair out now.....!!!
@OPTIONS MAIN
IDENTIFICATION DIVISION.
PROGRAM-ID. REPORT1.
* PROGRAMER:
* DATE WRITTEN:
** THIS PROGRAM PRINTS A REPORT
* WITH COLUMN HEADINGS WITH TWO
* RECORDS ON EACH LINE...
WOULD THIS BE CORRECT????
100-PREPARE-EMPLOYEE-LINES.
000891 READ EMPLOYEE-FILE
000892 AT END
00089 MOVE "YES" TO SW-EOF-SWITCH.
000894 IF SW-EOF-SWITCH IS EQUAL TO "NO "
000895 MOVE SPACES TO EMPLOYEE-LINE
000911 MOVE EL-LNAME TO...
OOPs...I retyped the code backwards....I did move ER- to EL-in my program for compile. The problem was: I couldn't figure out the format to do 2 Reads to write both lines.
...My output is only printing 1 column of info..help....
000010 @OPTIONS MAIN
000020 IDENTIFICATION DIVISION.
000030 PROGRAM-ID. REPORT1.
000040* PROGRAMER: WENDY HANKS
000050* DATE WRITTEN: 9/06/2002
000060* DUE DATE: 9/26/2002
000070
000080* THIS PROGRAM PRINTS A REPORT...
...My output is only printing 1 column of info..help....
000010 @OPTIONS MAIN
000020 IDENTIFICATION DIVISION.
000030 PROGRAM-ID. REPORT1.
000040* PROGRAMER: WENDY HANKS
000050* DATE WRITTEN: 9/06/2002
000060* DUE DATE: 9/26/2002
000070
000080* THIS PROGRAM PRINTS A REPORT...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.