Dynamically create and execute COBOL statements

5 pts.
Tags:
AS/400
COBOL
COBOL statements
I'm trying to dynamically create COBOL statements using field names identified in a table, so the same build statement can be used for different fields. Is there a way to dynamically build statements and execute?  These buillt statements would be MOVE and ADD statements. Thanks in advance

Software/Hardware used:
AS400, COBOL

Answer Wiki

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

Discuss This Question: 3  Replies

 
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
  • LetItBe
    I'm not sure exactly what you want to do. I create COBOL subroutine programs to perform repetitive tasks by passing variables to the COBOL as input parameters in the Linkage Section. Then code "Procedure Division using input-parm-1, input-parm-2", etc. Does that sound like what you want to do?
    260 pointsBadges:
    report
  • TomLiotta
    Is there a way to dynamically build statements and execute? No. COBOL is compiled, not interpreted. What are you actually trying to accomplish? Please provide the business problem that you need to solve rather than the technological problem. There might be a much better solution than what you're trying to do. Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    ...so the same build statement can be used for different fields. Your question is about a technology problem, but it looks as if you actually have a business problem. If you could describe the business problem a little more, perhaps a more appropriate technological solution can be suggested. Tom
    125,585 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