IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

REXX code to expand copybook in a cobol program in view mode


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Deep S

New User


Joined: 16 May 2023
Posts: 6
Location: India

PostPosted: Thu Aug 10, 2023 1:16 am
Reply with quote

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
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 1992
Location: USA

PostPosted: Thu Aug 10, 2023 2:34 am
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2540
Location: Silicon Valley

PostPosted: Thu Aug 10, 2023 5:06 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 5
No new posts run rexx code with jcl CLIST & REXX 15
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
Search our Forums:

Back to Top