Rob Schramm said:

>Oopps. you are correct. 

>I was trying to create a simple example... and only made it more
confusing.

>Basically, we have a letter that was put into 80 column format that
needs to be converted to 103 columns.  


Given that you need to keep words intact (or break at a syllable
boundary with a '-'), and given the 80-char limit of your CM software, I
would suggest a variation of something already mentioned by others.

First code 2 lines in the source code member for each line of your
finished letter.  You could use 80 character records and put the first
80 characters on the first line and the next 23 on the second line of
each pair (leaving the final 57 blank on the second line).  (Or you
could use some other record length, such as 60, with 60 / 43 on the two
records of each pair).  The text would continue right across the
boundary from the first record to the second for each pair, as if they
were both part of the same line (which they will become).  You would
manually control the line-break (from one logical line to the next of
the finished letter) during the coding of the source file.  

Once the file is coded, it can be converted into 103-char records.
Assume 80-character records.  The first step would read the source file
as input and output it blocking the records with an even number of
records in each block - say 100 records per block, for a block-size of
8000.  In the next step, that even-blocked file would be copied again
with the input explicitly having LRECL=160, (and therefore the block
only having 50 records), so that the two parts of each line are
concatenated together.  The output for the second step would truncate
the records to the desired 103 characters each.  IEBGENER or any SORT
program could be used for either or both steps.


David Mueller | Systems Programmer | DMS/EITS
Phone: 850-414-9134 (Rm 107 SRC) | Fax: 850-921-8343
E-mail: [EMAIL PROTECTED]
  

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to