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

how to expand the copy book the jcl itself?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jspaulpeter

New User


Joined: 25 Aug 2005
Posts: 12

PostPosted: Fri Jan 19, 2007 9:41 am
Reply with quote

hi friends,

i want see the copy book in the jcl itself? that is expand the copy book
what is command used for that.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jan 19, 2007 10:27 am
Reply with quote

Hello,

If i understand what you want, you can get it using IEBGENER.

This will let you run some JCL and in the output will be the contents of the copybook.
Back to top
View user's profile Send private message
jspaulpeter

New User


Joined: 25 Aug 2005
Posts: 12

PostPosted: Fri Jan 19, 2007 10:43 am
Reply with quote

hello i know after compile the program
the copy book expand in spool
i want with compile the program that is the jcl itself i want expand the copy book. do you know any command for that.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jan 19, 2007 10:52 am
Reply with quote

Hello,

Can you give a short example of what this is asking for?
Quote:
i want with compile the program that is the jcl itself i want expand the copy book. do you know any command for that.


Show some code and jcl and explain what result(s) you need.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Fri Jan 19, 2007 12:53 pm
Reply with quote

I've read the post 4 times, still couldn't understand the question... icon_rolleyes.gif

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

New User


Joined: 25 Aug 2005
Posts: 12

PostPosted: Fri Jan 19, 2007 1:17 pm
Reply with quote

actully after compile the cobol program. the copy book expand in the spool.

i asked that in the compile jcl itself can i expand the copy book and copy lib
that is my question?
Back to top
View user's profile Send private message
jspaulpeter

New User


Joined: 25 Aug 2005
Posts: 12

PostPosted: Fri Jan 19, 2007 1:21 pm
Reply with quote

dick scherrer wrote:
Hello,

Can you give a short example of what this is asking for?
Quote:
i want with compile the program that is the jcl itself i want expand the copy book. do you know any command for that.


Show some code and jcl and explain what result(s) you need.


actually after compile the program we have to see the copy book in the spool because it will expand after compile.
i want befor run the compile jcl can i view or expand the copy book in the jcl ifself? that is my question.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Jan 19, 2007 2:55 pm
Reply with quote

Go to the pds and look at the member or print it out. That is all the copybook is, a member in a pds.
Back to top
View user's profile Send private message
Mohan Makana

New User


Joined: 07 Feb 2006
Posts: 18

PostPosted: Fri Jan 19, 2007 3:34 pm
Reply with quote

If I am not wrong ...the Question is...

How do you expand the dataset according to the corresponding copybook of the file While browsing/editing dataset from the JCL.

e.g. type CB(It varies) at the COMMAND prompt , place the cursor on the particular file and press ENTER...the file opens in browse mode 'C-CHAR' but he wants to see the file contents in 'F-Fmt' browse mode.

Please let me know ...If I am wrong.

Thanks,
Mohan.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jan 19, 2007 8:39 pm
Reply with quote

Hello,

Please note that while your question is quite clear to you it is not to others. That is why i posted the following:
Quote:
Can you give a short example of what this is asking for?
Quote:
i want with compile the program that is the jcl itself i want expand the copy book. do you know any command for that.


Show some code and jcl and explain what result(s) you need.


If you will show an example of what you want to happen (i.e. some kind of pseudo jcl and some kind of copybook output, we will be more able to help. These don't need to be large, just representative. Once it is clear to others what you need, i'm sure we can offer suggestions.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Jan 20, 2007 10:44 pm
Reply with quote

This happens (understandably) quite often. I suggested once that the poster compose the ques in their native language and ask a co-worker with a better command of English to translate it.

Some thought I was being sarcastic, but I was sincere.

Another thought: Perhaps a place here, at ibmmainframes, where a poster can go to get this kind of help.
Back to top
View user's profile Send private message
jinal_mca

New User


Joined: 05 Jan 2007
Posts: 22
Location: Pune, India

PostPosted: Tue Jan 23, 2007 3:29 pm
Reply with quote

See JCL is having lots of pre-written programs that is called utilities..

-See for copying any ps\pds we have utility called IEBGENER..
-Include it in ur jcl stmt and assign to pgm positional parameter of exec stmt.
-then use data defination stmt to copy.

hope this will work.
If u want to have syntax then let m know.
cya
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Jan 24, 2007 7:08 am
Reply with quote

If your site has FileAid, I think option 8 under utilities is where you'll find it.

It gives the offsets and lengths in addition to the PIC.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jan 24, 2007 7:46 am
Reply with quote

Hello Jack,

Good thought. If they have fileaid, it could also be run in batch and then the "expanded" copybook would be "in the jcl".

If would be nice if jspaulpeter would post an example of what is really desired. . .
Back to top
View user's profile Send private message
eHorizon.Andrew

New User


Joined: 18 Jan 2007
Posts: 28
Location: Bank of communications

PostPosted: Wed Jan 24, 2007 8:06 am
Reply with quote

Mohan Makana wrote:
If I am not wrong ...the Question is...

How do you expand the dataset according to the corresponding copybook of the file While browsing/editing dataset from the JCL.

e.g. type CB(It varies) at the COMMAND prompt , place the cursor on the particular file and press ENTER...the file opens in browse mode 'C-CHAR' but he wants to see the file contents in 'F-Fmt' browse mode.

Please let me know ...If I am wrong.

Thanks,
Mohan.


hi Mohan.
I understand what you say, but the ques is what is the exactly definition for the particular file?

thanks,
Back to top
View user's profile Send private message
shitij

New User


Joined: 09 Sep 2005
Posts: 31
Location: Delhi

PostPosted: Thu Jan 25, 2007 1:35 am
Reply with quote

OK...now here is another way to do it.


If you know JMUTIL (utility) in JCL...what it does is that it will copy the entire job spool to a PS file (of your desired choice).


If you have the spool in a PS file, just take that file as input and then you may extract the copybook (in the expanded form) from the spool...use some INCLUDE condition.


Get back to me if it is not clear...I am pretty sure this can be achieved this way.
Back to top
View user's profile Send private message
ksannigeri

New User


Joined: 08 Apr 2005
Posts: 18

PostPosted: Thu Jan 25, 2007 12:58 pm
Reply with quote

jspaulpeter wrote:
hi friends,

i want see the copy book in the jcl itself? that is expand the copy book
what is command used for that.


Hi according to the statemt given, above..
what i make of it is.. you want to see or browse a file(copybook DSN),when it is being mentioned in the JCL itself

For ex--
if u have a jcl,
like
//username JOB (T,0,,C),'ABC',MSGCLAS
// NOTIFY=XYZ
/*
//SRT1 EXEC PGM=IEBGENER
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//viewdd DD DSN=X.Y.Z(MSN),DISP=SHR

To open the copybook memebr MSN, in the existing JCL itself
just place command CB( cursor Browse) in command line and place the cursor on X.Y.Z(MSN)
Then u will be able to open the member in browse mode.

Hope it will answer your question........
Thanks,
Kiran
Back to top
View user's profile Send private message
eHorizon.Andrew

New User


Joined: 18 Jan 2007
Posts: 28
Location: Bank of communications

PostPosted: Thu Jan 25, 2007 7:02 pm
Reply with quote

hi, ksannigeri

I have tried your method , get the error"Command CB not found"..

clear me if any errors...

thanks,
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Thu Jan 25, 2007 7:28 pm
Reply with quote

Me, like ofer71, have read the post several times... and I'm lost at all.

if you want to see the lenght/offsets.... you could use Fileaid, Startool, FileManager (and sure many other tools)

If you want to expand the copybook from your program many shops have homeground utilites or just edit the library/member...

In the jcl? maybe you are including your cobol source in a jcl compilation?


You see, we are all here trying to guess what the OP is asking...not a good idea until, as other said, he post an example...
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jan 25, 2007 7:30 pm
Reply with quote

Hello,

Please submit the suggested IEBGENER. Then post the JCL you submitted as well as the output files. Please post all of this as "code".

We will see the expanded copybook in the "jcl".

If you want to view it directly, go into tso and just browse the member.

If for some reason you did not want to use IEBGENER, you could accomplish the same thing with SORT or a little COBOL program that you would write that would read a file (copybook member) and print it.

Things like CB are site specific - they are not part of the standard environment.
Back to top
View user's profile Send private message
Praveen Kumar Singh
Warnings : 1

New User


Joined: 02 Jan 2007
Posts: 6
Location: Mumbai

PostPosted: Fri Jan 26, 2007 12:50 pm
Reply with quote

Hi All,

As I understand the question......jspaulpeter wants to see the Expanded copybook in the JCL exactly like in Cobol program we see it in Expanded mode in WB.22 option or write EXPAND in command line after opening the program.

In JCL type JSCAN command and all Copybooks and PROCS will be seen in expanded mode.

Thanks,
Praveen
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
Search our Forums:

Back to Top