I think a new emergency patch we applied must be causing lots of Cobol
problems, or I am going mad:
card-type pic XX.
if pay-payment-batch = "PENDING"
DISPLAY "pay-payment-code" pay-payment-code
DISPLAY "Card type" "'"card-type"'"
if pay-payment-code = card-type or card-type = "@"
display "true"
display "Post " pay-rec-loc-line " " pay-payment-code " "
pay-payment-text " " pay-payment-batch " "
pay-payment-time
move payments to ccardin-rec
write ccardin-rec
end-if
end-if
When I run this:
Enter card type: @
pay-payment-codeVI
Card type'@'
pay-payment-codeVI
Card type'@'
pay-payment-codeDI
Card type'@'
etc....
The program hasn't been changed for over a year and always worked, if I
change the logic to:
if pay-payment-code = card-type or card-type = "XX"
Enter card type: XX
It works.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *