Can and how do you recreate the action diagram from source?

30 pts.
Tags:
AS/400 Synon
Synon
External function object accidentally deleted from Synon, but source itself is still available. I copied the source back into QLBLSRC, created a function and it recompiled. BUT none of the read, move, if/else statements are in the action diagram.  Is it possible to recreate the action diagram from the source?  And if so, how?

Answer Wiki

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

Phew! You have an interesting task

If this is an EXCEXTFUN type then you may have a chance. First – copy your source, rename it, and keep it secure.

– Did you check for any versioned copies?

Recreate an EXCEXTFUN and give it the missing functions generation name.

Do you know what the lost fun did? – as a specification, say. Is it trivial or serious, or essential or business critical?

You can consider maintaining it in RPG in future ?

But if you still need to regenerate the lost action diagram, then you need to examine a source list and abstract the functions used by examining the subroutines comments – where all the components are named. You can quickly extract a component list, and you can quickly construct a flow of nested routines by inspecting the interraction between mainline and subroutines.

Now look at the CASE constructs – again, the model components and values are there in plain english in the comments, so for each CASE, reconstruct it with its conditions from the comments.

An EXCEXTFUN has no structure, unlike, say, a DSPFIL, so its mostly a top to bottom flow of control – lucky

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