Debug ILE Cobol 400

5 pts.
Tags:
COBOL debugging
COBOL/400
ILE COBOL/400
RPG ILE
How can I display (Eval) subset of a filed while debugging ILE Cobol program. How can I view the content of a field from specified position and lenght. I know how to review the content for a specified lenght, but can't find a way to view part of the string from position 256 for example.

Software/Hardware used:
iSereis v6r1, ILE COBOL

Answer Wiki

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

Assume the field is MyCOBOLField:

Debug . . . eval %SUBSTR( MyCOBOLField 256 20 )

The EVAL debug command should display MyCOBOLField beginning in position 256 for 20 bytes.

The [help] available within debug has this information.

Tom

Discuss This Question:  

 
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

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