Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to expand the copy book the jcl itself?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: how to expand the copy book the jcl itself?
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

Site Director


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

PostPosted: Fri Jan 19, 2007 10:27 am    Post subject:
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    Post subject: hello sir
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

Site Director


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

PostPosted: Fri Jan 19, 2007 10:52 am    Post subject:
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: 2360
Location: Israel

PostPosted: Fri Jan 19, 2007 12:53 pm    Post subject:
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    Post subject: just i want expand the copy book in the jcl?
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    Post subject: i want expand the copy book in the jcl ifself?
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: 3158
Location: Tucson AZ

PostPosted: Fri Jan 19, 2007 2:55 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Fri Jan 19, 2007 8:39 pm    Post subject:
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    Post subject:
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: 23
Location: Pune, India

PostPosted: Tue Jan 23, 2007 3:29 pm    Post subject: Have solution
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    Post subject:
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

Site Director


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

PostPosted: Wed Jan 24, 2007 7:46 am    Post subject:
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    Post subject:
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    Post subject: Re: how to expand the copy book the jcl itself?
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    Post subject: Re: how to expand the copy book the jcl itself?
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    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Jan 25, 2007 7:30 pm    Post subject:
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts How to copy Tape dataset to unix main... chaky All Other Mainframe Topics 4 Fri Jul 08, 2016 2:52 am
No new posts Using Field names in FILEAID Batch CO... Atul Banke Compuware & Other Tools 2 Wed Jun 29, 2016 9:54 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us