soniabharat
Programmer
Hi,
My project is to maintain address record of clients.On screen I enter 8 digi no. and it displays all matching records.
It displays address no. and address-instruction of the record.Address no. is system generated,whenever new record is added.
Now when I enter client no. on screen,New address button form activates.When I click it another form opens where i enter information of client,then I click Apply and then OK button.On clicking ok it comes to main screen but doesnot add the new address.Code for Add is
WRITE-BILLADDR-RECORD.
IF ADD-ADDRESS
DISPLAY "IT ADD-ADDRESS IN WRITE PARA"
MOVE 'A' TO ACTION-FLAG
CALL 'BADRIO' USING BILLING-ADDRESS-RECORD
BILL-ADDR-IO-WS
WRITE-CODE
DISPLAY "IN ADD-ADDRESS IN WRITE PARA IT WRITES CODE"
ELSE
MOVE 'C' TO ACTION-FLAG
CALL 'BADRIO' USING BILLING-ADDRESS-RECORD
BILL-ADDR-IO-WS
REWRITE-CODE
DISPLAY "ELSE OF ADD-ADDRESS REWRITES CODE".
The code of rewrites work fine.But not of write.
Thx
My project is to maintain address record of clients.On screen I enter 8 digi no. and it displays all matching records.
It displays address no. and address-instruction of the record.Address no. is system generated,whenever new record is added.
Now when I enter client no. on screen,New address button form activates.When I click it another form opens where i enter information of client,then I click Apply and then OK button.On clicking ok it comes to main screen but doesnot add the new address.Code for Add is
WRITE-BILLADDR-RECORD.
IF ADD-ADDRESS
DISPLAY "IT ADD-ADDRESS IN WRITE PARA"
MOVE 'A' TO ACTION-FLAG
CALL 'BADRIO' USING BILLING-ADDRESS-RECORD
BILL-ADDR-IO-WS
WRITE-CODE
DISPLAY "IN ADD-ADDRESS IN WRITE PARA IT WRITES CODE"
ELSE
MOVE 'C' TO ACTION-FLAG
CALL 'BADRIO' USING BILLING-ADDRESS-RECORD
BILL-ADDR-IO-WS
REWRITE-CODE
DISPLAY "ELSE OF ADD-ADDRESS REWRITES CODE".
The code of rewrites work fine.But not of write.
Thx