Page 1 of 1

ISPF Panel preprocess reversal

PostPosted: Fri Feb 10, 2012 8:30 am
by dazz
Hi,

I need to change an ISPF panel which has been preprocessed with ISPPREP, and the original source is no longer available.

The following comment appeared in another post:
panels can be reverse engineered fairly easily

Is there a utility available to reverse engineer a preprocessed panel?

Any help greatly appreciated.

Thanks,
Dazz.

Re: ISPF Panel preprocess reversal

PostPosted: Fri Feb 10, 2012 1:23 pm
by expat
I vaguely recall looking into this some 10 to 12 years ago.

Have you browsed the member for the processed panel ?

Re: ISPF Panel preprocess reversal

PostPosted: Mon Feb 13, 2012 4:36 am
by dazz
Yes, browsing the processed source reveals some useful information - e.g. variable names, and some clues as to field validation. These are useful if recreating the panel manually.

A reverse engineered panel wouldn't need to look pretty. Just having something that can be edited and preprocessed again would be sufficient.

Thanks.

Re: ISPF Panel preprocess reversal

PostPosted: Mon Feb 13, 2012 11:06 am
by Pedro
Try using ISPDPTRC to get any )INIT and )PROC statements. If there is complex logic, you may have to run the trace with enough variations to go through all of the code paths.

Re: ISPF Panel preprocess reversal

PostPosted: Mon Feb 13, 2012 11:31 am
by dazz
Hey Pedro,
Thanks, that's a great help.
Cheers.