SiouxCityElvis
Programmer
Hi,
I'm using RMCOBOL-85 and I need to learn how to tell when I've run into a ^L(carriage return?) control character. I found the EBSIDIC/ASCII table in my manual but am lost as far as the approach to scanning each line.
I'm reading in a checkprint file that is put into a queue for me originating from QuickBooks.
I need to set a flag indicating when I've hit a new employee(Below 2 employees in example).
I need to set a flag indicating when I've got the amount line and the amount is found.
I need to set a flag indicating when I've got the SSN field.
I need to set a flag indicating when I've started a new pay stub(1st rec no ^L in the beginning, 2nd employee I can set this flag based off fact I've got a ^L)
This last flag, concerning the ^L, is the one I have not idea how I'll set. INSPECT?
Any ideas? Thanks.
-David
An example of a file is:
I'm using RMCOBOL-85 and I need to learn how to tell when I've run into a ^L(carriage return?) control character. I found the EBSIDIC/ASCII table in my manual but am lost as far as the approach to scanning each line.
I'm reading in a checkprint file that is put into a queue for me originating from QuickBooks.
I need to set a flag indicating when I've hit a new employee(Below 2 employees in example).
I need to set a flag indicating when I've got the amount line and the amount is found.
I need to set a flag indicating when I've got the SSN field.
I need to set a flag indicating when I've started a new pay stub(1st rec no ^L in the beginning, 2nd employee I can set this flag based off fact I've got a ^L)
This last flag, concerning the ^L, is the one I have not idea how I'll set. INSPECT?
Any ideas? Thanks.
-David
An example of a file is:
Code:
^M
7/30/2004^M
Bob Smith **214.49^M
Two Hundred Fourteen and 49/100**************************************^M
Bob E. Smith^M
c/o Blah^M
99999 blah blah Road^M
blah, TX 99999^M
07/16/2004 - 07/31/2004 Pay Peri^M
Bob E. Smith 7/30/2004 YTD^M
c/o Herring Ranch Blah blah Salary 232.26 8,032.26^M
99999 BLah blah Ro Social Security Employ -14.40 -498.00^M
Blah, TX 99999 Medicare Employee -3.37 -116.47^M
Federal Income Tax Wit 0.00 -299.00^M
999-99-9999^M
Blah blah Ranch^M
P. O. Box 0000^M
blah, TX 99999^M
07/16/2004 - 07/31/2004 Pay 214.49^M
BOb E. Smith 7/30/2004 YTD^M
c/o Blah Ranch Blah blah blah Salary 232.26 8,032.26^M
99999 BLah Ranch Ro Social Security Employ -14.40 -498.00^M
Blah, TX 79083 Medicare Employee -3.37 -116.47^M
Federal Income Tax Wit 0.00 -299.00^M
999-99-9999^M
Blah Blah Ranch^M
P. O. Box 0000^M
Blah, TX 00000^M
07/16/2004 - 07/31/2004 Pay 214.49^L^M
7/30/2004^M
John Doe **120.06^M
One Hundred Twenty and 06/100****************************************^M
John Doe^M
99999 Blah Ranch Road^M
Blah, TX 99999^M
07/16/2004 - 07/31/2004 Pay Peri^M
John Doe 7/30/2004 YTD^M
99999 Blah Ranch Ro Blah-BLah Salary 130.00 580.00^M
Blah, TX 99999 Social Security Employ -8.06 -35.96^M
Medicare Employee -1.88 -8.41^M
999-99-9999^M
Blah Blah Ranch^M
P. O. Box 0000^M
Blah, TX 99999^M
07/16/2004 - 07/31/2004 Pay 120.06^M
John Doe 7/30/2004 YTD^M
99999 Blah Ranch Ro Blah-Blah Salary 130.00 580.00^M
Blah, TX 99999 Social Security Employ -8.06 -35.96^M
Medicare Employee -1.88 -8.41^M
999-99-9999^M
Blah Blah Ranch^M
P. O. Box 0000^M
Blah, TX 99999^M
07/16/2004 - 07/31/2004 Pay 120.06^L^M