progolf069
Programmer
This problem has had me stumpted for the last couple of days.
My boss wants me to take a customer database that we have, and have a report printout for any PO Boxes that would be in the address field of the database. We are wanting to be able to use this database to send UPS shipments to our customers, but of course UPS does not ship to PO Boxes!
So does COBOL, like SQL, support any commands/statements like a LIKE operator? Right now I am about to code my program where it will test every character in the address field, and if I am able to extract (or pull) all of the letters "POBX" from all of the characters in the address field, I would then extract that record for printing.
But I would think this would have any easier way of being done, besides testing all of the characters in the given field. Anybody have any ideas, or samples of a like situation that they would like to share? Thanks for everybodies help! Have a great one!
My boss wants me to take a customer database that we have, and have a report printout for any PO Boxes that would be in the address field of the database. We are wanting to be able to use this database to send UPS shipments to our customers, but of course UPS does not ship to PO Boxes!
So does COBOL, like SQL, support any commands/statements like a LIKE operator? Right now I am about to code my program where it will test every character in the address field, and if I am able to extract (or pull) all of the letters "POBX" from all of the characters in the address field, I would then extract that record for printing.
But I would think this would have any easier way of being done, besides testing all of the characters in the given field. Anybody have any ideas, or samples of a like situation that they would like to share? Thanks for everybodies help! Have a great one!