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: 2023
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: 2547
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 Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts HILITE on Browse mode? TSO/ISPF 2
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts Running REXX through JOB CLIST & REXX 13
Search our Forums:

Back to Top