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
 

 

Captiure JES element JESJCL into a dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Nov 23, 2010 12:39 pm    Post subject:
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

Senior Member


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

PostPosted: Tue Nov 23, 2010 3:16 pm    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Tue Nov 23, 2010 3:33 pm    Post subject: Reply to: Captiure JES element JESJCL into a dataset
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: 2360
Location: Israel

PostPosted: Tue Nov 23, 2010 3:42 pm    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Tue Nov 23, 2010 4:36 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Tue Nov 23, 2010 4:39 pm    Post subject: Reply to: Captiure JES element JESJCL into a dataset
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Tue Nov 23, 2010 5:27 pm    Post subject: Reply to: Captiure JES element JESJCL into a dataset
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: 8593
Location: Back in jolly old England

PostPosted: Tue Nov 23, 2010 5:36 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Wed Nov 24, 2010 8:38 am    Post subject:
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    Post subject:
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Wed Nov 24, 2010 11:58 am    Post subject: Reply to: Captiure JES element JESJCL into a dataset
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts FTOPEN TEMP is failing due to dataset... mbenaud TSO/ISPF 7 Thu Jul 28, 2016 4:28 pm


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