How does one change an S9(7) comp-3 value to a 9(7) field?

385 pts.
Tags:
COBOL/400
From an externally define file I bring in an S9(7) comp-3 value how can I convert this field to a 9(7) that I can use to make a compare like 'IF field1 = field2 then do' .

Answer Wiki

Thanks. We'll let you know when a new response is added.

It has been close to 20 years since I have done any cobol programming, so this may not be what you are looking for. From looking at http://en.allexperts.com/q/Cobol-1443/move-differing-field-types.htm I think that all you need to do is move it from one field to another and cobol will take care of the conversion. Sort of like doing a MOVE or MOVEL in RPG.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Rlsantucijr
    Yes, Teandy is correct.
    445 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following