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...
OK I see an error on my old program, but that has been long fixed....below is my program and my output..I'm only getting 1 row of info and losing the second one somewhere.....It skips over the second row without printing it....
OPTIONS MAIN
IDENTIFICATION DIVISION.
PROGRAM-ID. REPORT1.
*...
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
goto....www.geocities.com/Eureka/2006/
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...
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...
Here is one of my programs as example...hope this helps...
Do you have a specific project?
#include <iostream.h>
#include <math.h>
#define TRUE 1
#define FALSE 0
int Process_Function(int type_choice, int main_choice);
void datatype(Process_Function);
int main_menu(Process_Function);
int...
Actually...this is what I meant to post....
Now, I'm only getting an 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...
Now, I'm only getting an 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
*...
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.
Can anyone help me with my program???
I'm trying write a report with col headings as:
last name first name ext last name first name ext
here is a copy of my program....This problem is in my Procedure division.......process-employee-lines....
My output is only printing 1 column of...
Can anyone help me with my program???
I'm trying write a report with col headings as:
last name first name ext last name first name ext
here is a copy of my program....This problem is in my Procedure division.......process-employee-lines....
My output is only printing 1 column of...
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.