View previous topic :: View next topic
|
Author |
Message |
VishnuPrakash
New User
Joined: 10 Jun 2010 Posts: 10 Location: Bangalore
|
|
|
|
Can some one pls help me to read JESJCL to a PS
I tried many times with different wasy but did not get the required result...
even i tried capturing JESJCL by giving //SYSPRNT DD DSN=xyz.asd.bck,DISP=SHR
but its of no use.. did not get the required result...
Please help me with this.... |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
DO NOT tag you request onto an existing thread that has been dormant for over a year, start a new thread.
Well, you are not getting the required result. That's about as helpfull as a chocolate teapot
I have tried many different things and did not get the required result. OK, so shall we play guess the method already tried and waste everybodies time by doing the same old stuff over again.
EXACTLY what do you wish to achieve. One job, multiple jobs, or what. Give details of what you have tried. Have you searched the forum and seen the REXX / SDSF solutions given. Have you tried google before posting. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Or just use XDC? |
|
Back to top |
|
|
VishnuPrakash
New User
Joined: 10 Jun 2010 Posts: 10 Location: Bangalore
|
|
|
|
My production datasets starts with PR.D492.* and i am using these datasets in JCL
My requirement is:
1. At the begining i will run this JCL with TYPRUN=SCAN which will check for JCL error and expands all the PROC and this can be seen in the SPOOL out put
2. i need to copy this spool out put i.e. JESJCL content in to a PS or PDS
3. then i will check how many production datasets in update mode are used in this jcl using REXX
This is to get the count of production datasets that are being used in the JCL in the update mode.
I have good hold on REXX and completed the REXX part but bit weak in JCL... only the pending part is copying JESJCL out put form SPOOL to PS....i this is done then my tool is ready for production....
As a part of testing i was copying JESJCL out put manually to a PS and then i was running REXX script on this PS to find out how many produciton datasets are used in update mode.
But now i wanted to automate the manual effort of this... wehere copying the JESJCL out put in to a PS....
Please help me with this
Thanks in advance |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Quote: |
3. then i will check how many production datasets in update mode are used in this jcl using REXX
This is to track how many production datasets are used in the JCL in the update mode.
|
pretty difficult to find out...
Code: |
//somedd DD DISP=SHR,DSN=somedsn |
tells just plain nothing about dataset access |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
As always, use of REXX/SDSF interface is the most recommended method.
O. |
|
Back to top |
|
|
VishnuPrakash
New User
Joined: 10 Jun 2010 Posts: 10 Location: Bangalore
|
|
|
|
No still i am not able to copy the contents of JESJCL to any PS...
I used the same statement givent by enrico-sorichetti above with my own ddname...[/b] |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Can you show us how did you try to access SDSF from REXX? We might help you solving any errors...
O. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
my remark was not about saving anything in a dataset...
the remark was about the impossibility of finding the dataset <mode/in/out/update> by looking only at the DD
for a NEW disposition it is ok to assume output, but nothing can be inferred by SHR/OLD |
|
Back to top |
|
|
VishnuPrakash
New User
Joined: 10 Jun 2010 Posts: 10 Location: Bangalore
|
|
|
|
but in our shop all the production datasets starts with PR.D49*
By finding the PR.D49* in the jcl we can find out the production dataset...
but i am struck in copying the data form JESJCL - Spool data to PS |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Quote: |
3. then i will check how many production datasets in update mode are used in this jcl using REXX
This is to get the count of production datasets that are being used in the JCL in the update mode.
|
looks like You can write,You can read, but You are not aware of the meaning of what You write and read!
Your original request which I quoted twice talks about update, not utilization
so my remark stands
but if You just want to find which are referenced in your jcl, that' s ok |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
What I think that Enrico is trying to get you to understand is that ...........
The DISP= parameter does not state definitively that a dataset has been opened for input or output or both.
DISP=SHR is equally valid for input, input/output or output
DISP=OLD is equally valid for input, input/output or output
Now do you understand |
|
Back to top |
|
|
VishnuPrakash
New User
Joined: 10 Jun 2010 Posts: 10 Location: Bangalore
|
|
|
|
Yes i understood..... i will handle this...
I guess our discussion is deviated form my requirement....
Please some one help me to read JESJCL - SPOOl out put to some PS |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Is there some reason you have not used one of the 2 ways provided earlier in this topic?
1. "As always, use of REXX/SDSF interface is the most recommended method."
2. "Or just use XDC?"
The first way requires you (or someone) write rexx.
The second requires only that you issue XDC while looking at the sysout dataset in sdsf.
And no matter how you copy the jes data to a sequential dataset, you will still not have:
Quote: |
then i will check how many production datasets in update mode are used in this jcl using REXX |
If a dataset disp is OLD or SHR in the jcl, it may or may not be updated. There is no such thing as an "update mode" in a dd statement. . . |
|
Back to top |
|
|
VishnuPrakash
New User
Joined: 10 Jun 2010 Posts: 10 Location: Bangalore
|
|
|
|
ok.. thanks for your help... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Quote: |
I guess our discussion is deviated form my requirement. |
improper remark about a #@?! requirement set by #@?! people
since here we are professionals,
we feel that nobody should waste time on a #@?! requirement
and it is right to correct Your wrong assumptions, requirements and understandings
but now that we know the way You think ...
if You want to <shoot> Yourself just ask, and we shall be glad to provide exhaustive instructions on how to proceed |
|
Back to top |
|
|
|