View previous topic :: View next topic
|
Author |
Message |
Deep S
New User
Joined: 16 May 2023 Posts: 8 Location: India
|
|
|
|
Hi ,
I need to write a REXX code. Purpose is to expand all copybook present in a cobol program in view mode if I type that REXX command.
I am not well versed with REXX code hence seeking for your help.
Thanks in advance! |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2131 Location: USA
|
|
|
|
Deep S wrote: |
Hi ,
I need to write a REXX code. Purpose is to expand all copybook present in a cobol program in view mode if I type that REXX command.
I am not well versed with REXX code hence seeking for your help.
Thanks in advance! |
Before “getting versed with REXX code” you need to design an algorithm (did you hear this word?) - what steps are required to achieve your goal? From your “explanation” it is absolutely not clear: how do you expect your “magic tool” to be used?
Next, you may be able to decide: do you really need REXX, or whatever else.
P.S.
This is a help forum, not do-my-job-for-me forum. Start doing at least something by yourself, then you might expect to get some help here. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2593 Location: Silicon Valley
|
|
|
|
re: "expand all copybook present"
Implementing that for 'all' seems messy to me.
My suggestion is to show one at a time on demand:
1. an editor macro that excludes all editor lines then finds all 'COPY' statements.
2. an editor macro (commonly named ZOOM) that takes the name from the cursor position, combines with copy library name, and starts a VIEW session.
You can do #2 above without #1. |
|
Back to top |
|
|
|