View previous topic :: View next topic
|
Author |
Message |
jspaulpeter
New User
Joined: 25 Aug 2005 Posts: 12
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
jspaulpeter
New User
Joined: 25 Aug 2005 Posts: 12
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
I've read the post 4 times, still couldn't understand the question...
O. |
|
Back to top |
|
|
jspaulpeter
New User
Joined: 25 Aug 2005 Posts: 12
|
|
|
|
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 |
|
|
jspaulpeter
New User
Joined: 25 Aug 2005 Posts: 12
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
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 |
|
|
Mohan Makana
New User
Joined: 07 Feb 2006 Posts: 18
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
jinal_mca
New User
Joined: 05 Jan 2007 Posts: 22 Location: Pune, India
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
eHorizon.Andrew
New User
Joined: 18 Jan 2007 Posts: 28 Location: Bank of communications
|
|
|
|
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 |
|
|
shitij
New User
Joined: 09 Sep 2005 Posts: 31 Location: Delhi
|
|
|
|
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 |
|
|
ksannigeri
New User
Joined: 08 Apr 2005 Posts: 18
|
|
|
|
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 |
|
|
eHorizon.Andrew
New User
Joined: 18 Jan 2007 Posts: 28 Location: Bank of communications
|
|
|
|
hi, ksannigeri
I have tried your method , get the error"Command CB not found"..
clear me if any errors...
thanks, |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Praveen Kumar Singh Warnings : 1 New User
Joined: 02 Jan 2007 Posts: 6 Location: Mumbai
|
|
|
|
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 |
|
|
|