This is the screen code.
CS-HHINFO-CS1-county-EF-ADD-Aft-Procedure.
PERFORM COUNTY-CHECK.
COUNTY-CHECK.
IF HMFN-COUNTY > SPACE
move spaces to cl-file, cnty-found
MOVE 'COUNTY.TBL ' TO CL-FILE
CALL "CNTY-LOC2" USING...
Yes, I used exit program and it does go back to the program calling it.
Yes, it is finding the county codes
Yes, I have testied for invalid-it goes through what seems a loop, like it tests it and states invalid code on the screen, and then it goes to the users screen code field and highlights...
It is not finding the code the user enters. I put in display and it is reading the tables. I am trying to take what the User enters and check that against a table for verification.
I am having problems reading and verifying-what am I doing wrong.
one program.
PROCEDURE DIVISION using HMFN-COUNTY, HMFN-LOCATION,
CNTY-LOC-TABLE, CNTY-LOC-NAME.
A000-BEGIN.
MOVE SPACES TO countys...
Okay, I ran the program with different variations searching on:
'999999999' and got 1281
'123456789' and got 13
on all ssn with a count of all '999999999' got 1280
on all ssn with a count of all '123456789' got 12
on all ssn's without specifiying a certain ssn and apprently it does not include...
i HAVE BOTH HM-SSN AND HM-SSN-2, HM-SSN-2 IS A SHORTER VERSION OF HM-SSN, I JUST DECIDED TO MOVE THE DATA INTO THE NWMAST-DATA-2 WORKING STORAGE FILE INSTEAD OF THE NEWMAST-DATA.
tHE SR-OCCURS IS WHAT YOU HAD ME PUT IN, I JUST CALLED IT SR-OCCURS INSTEAD OF SORT-OCCURS.
I TRIED THE PERFORM VARYING STATEMENT AND IT GIVES ME AN ERROR OF SUBSCRIPT OUT OF RANGE ON THE HM-SSN-2 (SR-OCCURS) = SPACES POINT.
PERFORM VARYING SR-OCCURS FROM 1 BY 1
UNTIL HM-SSN-2(SR-OCCURS) = SPACES
OR
SR-OCCURS > 23...
i AM STILL GETTING THE SAME ERROR IN THE SAME SECTION. iT DOES NOT LIKE THE HM-SSN(SR-OCCURS).
C103-SSN.
DISPLAY 'IN C103-HELP'.
DISPLAY 'HM-SSN=' HM-SSN(SR-OCCURS)
MOVE HM-SSN(SR-OCCURS) TO ER-ORG-SSN.
COMPUTE B-IDX = B-IDX + 1...
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.