Since I'm back to a location I could copy the exacts in..
Error Message :
Code:
Message ID . . . . . . : RNQ1221 Severity . . . . . . . : 99
Message type . . . . . : Inquiry
Date sent . . . . . . : 07/31/12 Time sent . . . . . . : 17:01:32
Message . . . . : Update or delete in file FILEA without prior input
operation (C G D F).
Cause . . . . . : RPG procedure ACSCOUNT in program LIZLIBR/ACSCOUNT at
statement 103 tried to update or delete a record in file FILEA without a
previous input operation. The actual file is LIZLIBR/FILEA(FILEA).
Code Logic Clarification:
Code:
FileA is an Update externally described file, no key.
FileB is Input File, necessary fields defined in Input Specs, no key.
Read FileA_RecordName
Clear *ALL FileA_Recordname
Read FileB
dowhile not EOF(FileB)
Select
When RcdID = 'H' //first letter of the record
assign values from FileB into fields from FileA
When RcdID <> 'H'
Check the value of a single character
add to relevant total count field from FileB of that type
EndSL
Read FileB
EndDo
Update FileA_RecordName
InLR = On
Alternate Ending:
Code:
Version 2:
Update FileA_RecordName %fields(all altered in previous code);
Version 3:
Assign zero to the four new fields in FileA
Update FileA_RecordName
No luck with either..
Thanks.