Page 1 of 1

Printing side by side dublicate data.

PostPosted: Mon Jan 23, 2017 11:41 pm
by Vladblood
I'm writing code to produce mailing lists from data (Name, address) in a file. I was able to create a program that prints the data twice one after another. The second program I want to print the data side by side, but when I compile I get an error that the data is not unique.
Here is a sample of a line I want to be printed.

01 MAIL-LABEL-LINE1.                                    
     05                         PIC X(5)     VALUE SPACES.
     05 ML1-CNAME               PIC X(20).                
     05                         PIC X(5)     VALUE SPACES.
     05 ML1-CNAME               PIC X(20).                
     05                         PIC X(30)    VALUE SPACES.


If someone could help me I would appreciate it.

Edited by moderator to include code tags and therefor correct indentation

Re: Printing side by side dublicate data.

PostPosted: Tue Jan 24, 2017 12:35 am
by Robert Sample
Either use unique names for the first and second variables on a single line, or use arrays. These are the easiest ways to do what you want.