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

How to Expand a Copybook while looking into the Source Code


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Deepak Dash

New User


Joined: 03 Sep 2007
Posts: 16
Location: India

PostPosted: Wed Sep 05, 2007 5:04 pm
Reply with quote

Hi,

Is there any TSO command or any ISPF command which will help me to expand my copybook while looking into the source code.

Thanks
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Wed Sep 05, 2007 5:35 pm
Reply with quote

Nope. icon_sad.gif
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Wed Sep 05, 2007 5:41 pm
Reply with quote

Well if you are just viewing the code then you could stick a B on the line after the copy statement and then type on the command line copy 'copylib(copybook)' and it will be pulled into your edit session.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Sep 05, 2007 6:29 pm
Reply with quote

I use "EXPND" command, after opening the Source code in view mode via 3.4, to expand copybooks. Might be site specific, still give a try.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2359
Location: Israel

PostPosted: Wed Sep 05, 2007 7:11 pm
Reply with quote

These are all site specific. You can write your own REXX/CLIST for that purpose.

O.
Back to top
View user's profile Send private message
tom_mat

New User


Joined: 13 Jul 2005
Posts: 11

PostPosted: Fri Sep 07, 2007 1:01 am
Reply with quote

try Include command on the command line,it expands all the copybook refered in the source. sometimes it may work for you!! icon_smile.gif
Thanks
Tom!
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Sep 12, 2007 7:01 pm
Reply with quote

tom_mat wrote:
try Include command on the command line,it expands all the copybook refered in the source. sometimes it may work for you!! icon_smile.gif
Thanks Tom!
Include should be site specific.
Back to top
View user's profile Send private message
logeswarank
Warnings : 1

New User


Joined: 15 Oct 2006
Posts: 22
Location: Chennai

PostPosted: Tue Sep 18, 2007 11:57 am
Reply with quote

Hi,

Try this one.

Give "B" in linenumber of which copybook you want to open or expand.After then type COPY ' CMAP106.COPYB.PDS(RECORDS)' in command line.

CMAP106.COPYB.PDS is an dataset name.
RECORDS is a copybook.


If its wrong correct me.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Tue Sep 18, 2007 12:33 pm
Reply with quote

Logeswaran,
You have repeated what 'stodlas' had posted earlier.

There is a good chance that you may end up include a different version of copybook than that will be actually used while compiling the program. So I will suggest looking in to expanded copybook in compiler listing.
Back to top
View user's profile Send private message
logeswarank
Warnings : 1

New User


Joined: 15 Oct 2006
Posts: 22
Location: Chennai

PostPosted: Tue Sep 18, 2007 12:44 pm
Reply with quote

Hi Abhijit Kshirsagar ,

Thank you for your suggestion.
Back to top
View user's profile Send private message
sun_job

New User


Joined: 18 Sep 2007
Posts: 73
Location: Bangalore

PostPosted: Tue Sep 18, 2007 1:18 pm
Reply with quote

if you using endevor tool , u can use the footprint option to expand the copybook in the source code.
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Thu Sep 20, 2007 10:47 am
Reply with quote

Hi,

Just an addon view, If you are using PANVALET you will have an expand option.

set the option to yes to view the program in expand mode.

Cheers,
Diwakar
Back to top
View user's profile Send private message
anilboke

New User


Joined: 08 May 2006
Posts: 3

PostPosted: Thu Sep 20, 2007 10:58 am
Reply with quote

type TSO CBX on command line and place cursor at copy book name and press Enter. This works in our shop.
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Mon Sep 24, 2007 10:36 am
Reply with quote

Sun,

I tried using Enddevor, But i could not able to view the code in expanded mode.

Do you have any setting/command to enable this ?

Cheers,
Diwakar

---------------------------------
Nobody is Perfect. I am Nobody
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Mon Sep 24, 2007 10:42 am
Reply with quote

Quote:
I tried using Enddevor, But i could not able to view the code in expanded mode.


In Endevor go to Footprrint option, and do listing of source module.
This is same as your compilation listing.
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Mon Sep 24, 2007 10:50 am
Reply with quote

Devzee,

Thanks for your quick reply. I went into the footprint option and browsed the member.

But still the member is in compressed mode.

Any Suggestions ?
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Mon Sep 24, 2007 10:51 am
Reply with quote

You did Browse or Listing?
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Mon Sep 24, 2007 10:53 am
Reply with quote

I did Browse buddy
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Mon Sep 24, 2007 10:58 am
Reply with quote

Should I assume you did Listing
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Mon Sep 24, 2007 11:02 am
Reply with quote

Dev,

Let me explain clearly.

1. I went into the footprint option and gave the dataset name in the (other partioned data set name option) and pressed enter ( i didnt give any option)

2. Member listed in the component window and i entered option B against the member and the member opened.

When i view the copy books it is still in the compressed mode !
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Mon Sep 24, 2007 11:05 am
Reply with quote

Check if you can do L listing unstead of B.
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Mon Sep 24, 2007 11:09 am
Reply with quote

Dev,

I could able to do the listing for the component.

Can you tell me for certain components i get ' Member not Footprinted'

What does it mean ?

Do we need to recompile the program in NED ?
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Mon Sep 24, 2007 11:12 am
Reply with quote

All COBOL programs which are in Endevor and succesfully compiled with no errors should have footprint.
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Mon Sep 24, 2007 11:14 am
Reply with quote

Dev,

For certain components i get the above error message.

I think this is the problem, that is y the component is not getting expanded ?

Any suggestions buddy ?
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Mon Sep 24, 2007 11:15 am
Reply with quote

Then see if you can re-compile
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 -> TSO/ISPF Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts IEF085I REGION UNAVAILABLE,ERROR CODE... Java & MQSeries 0
No new posts How to convert RESP code 12 to text? CICS 9
No new posts Execute step regardless of previous s... JCL & VSAM 2
No new posts Error 0C1 Reason Code 1 with branch i... PL/I & Assembler 3
No new posts JCL for replacing code in Cobol JCL & VSAM 7
Search our Forums:

Back to Top