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

Captiure JES element JESJCL into a dataset


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

New User


Joined: 10 Jun 2010
Posts: 10
Location: Bangalore

PostPosted: Tue Nov 23, 2010 12:21 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Tue Nov 23, 2010 12:39 pm
Reply with quote

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 icon_rolleyes.gif

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
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Tue Nov 23, 2010 3:16 pm
Reply with quote

Or just use XDC?
Back to top
View user's profile Send private message
VishnuPrakash

New User


Joined: 10 Jun 2010
Posts: 10
Location: Bangalore

PostPosted: Tue Nov 23, 2010 3:26 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Tue Nov 23, 2010 3:33 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Nov 23, 2010 3:42 pm
Reply with quote

As always, use of REXX/SDSF interface is the most recommended method.

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

New User


Joined: 10 Jun 2010
Posts: 10
Location: Bangalore

PostPosted: Tue Nov 23, 2010 4:33 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Nov 23, 2010 4:36 pm
Reply with quote

Can you show us how did you try to access SDSF from REXX? We might help you solving any errors...

O.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Tue Nov 23, 2010 4:39 pm
Reply with quote

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
View user's profile Send private message
VishnuPrakash

New User


Joined: 10 Jun 2010
Posts: 10
Location: Bangalore

PostPosted: Tue Nov 23, 2010 5:16 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Tue Nov 23, 2010 5:27 pm
Reply with quote

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! icon_biggrin.gif

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Tue Nov 23, 2010 5:36 pm
Reply with quote

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
View user's profile Send private message
VishnuPrakash

New User


Joined: 10 Jun 2010
Posts: 10
Location: Bangalore

PostPosted: Wed Nov 24, 2010 8:29 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Nov 24, 2010 8:38 am
Reply with quote

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
View user's profile Send private message
VishnuPrakash

New User


Joined: 10 Jun 2010
Posts: 10
Location: Bangalore

PostPosted: Wed Nov 24, 2010 8:52 am
Reply with quote

ok.. thanks for your help...
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Wed Nov 24, 2010 11:58 am
Reply with quote

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 icon_biggrin.gif
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 batch SFTP job using AOPBATCH unable ... All Other Mainframe Topics 7
No new posts Reading Empty Dataset DFSORT/ICETOOL 5
No new posts Mainframe Dataset Binary or ASCII Mainframe Interview Questions 4
No new posts SPOOL to Mainframe dataset in batch mode JCL & VSAM 7
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
Search our Forums:

Back to Top