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 edit the dataset after getting job info from spool

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
View previous topic :: :: View next topic  
Author Message
sandy123

New User


Joined: 25 Jul 2008
Posts: 4
Location: US

PostPosted: Mon Jul 28, 2008 1:07 pm    Post subject: How to edit the dataset after getting job info from spool
Reply with quote

My requirement is to read the job info from spool and present it in a report format. I got the job info in a dataset but I want to know how can I open the dataset for editing because after the spool commands it is not opening it.
Back to top
View user's profile Send private message

Anuj Dhawan

Senior Member


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

PostPosted: Mon Jul 28, 2008 1:25 pm    Post subject: Re: How to edit the dataset after getting job info from spoo
Reply with quote

Hi,
sandy123 wrote:
... I got the job info in a dataset
If you got the required information in dataset, then it's just another DS,

Quote:
but I want to know how can I open the dataset for editing
Just like any other input file, just other DS, one opens it..

Quote:
because after the spool commands it is not opening it.
There is something else which is yet not posted, please let us know what did you try & how does "it's not opening"..
Back to top
View user's profile Send private message
sandy123

New User


Joined: 25 Jul 2008
Posts: 4
Location: US

PostPosted: Tue Jul 29, 2008 8:30 am    Post subject: Reply to: How to edit the dataset after getting job info fro
Reply with quote

Hi,

I have tried the following code -

Code:
     
QUEUE "OWNER *"                                                     
QUEUE "PRE Z100421R"                  /* SDSF COMMANDS IN BATCH*/   QUEUE "ST"     
JOBID = JOB13242                                                                       
QUEUE "FILTER JOBID = "JOBID                                         
QUEUE "AFD REFRESH"                                                 
QUEUE "++?"                                /* OPEN OUTPUT OF JOB*/   
QUEUE "FIND 'JESMSGLG'"                                             
QUEUE "++S"                            /* BROWSE MSGLG DATASET*/     
QUEUE "L MAX-RC"                                                     
QUEUE "PRINT FILE TEMPPRT "                /* PRINT TO TEMP DATASET*/
QUEUE "PRINT 1 999999"                                               
QUEUE "PRINT CLOSE"                                                 
QUEUE "END"                                                                       
"EXECIO" QUEUED()" DISKW ISFIN (FINIS"     /* INPUT TO SDSF BATCH */
ADDRESS ISPEXEC "SELECT PGM(ISFAFD) PARM('++50,255')"/*INVOKE SDSF */
ADDRESS ISPEXEC "LIBDEF ISPPLIB DATASET ID('MY.REXX.EXEC')"
ADDRESS ISPEXEC "VPUT (STP) PROFILE"                                 
ADDRESS ISPEXEC "EDIT DATASET('T.RP.DATASET') MACRO(CREREPRT)"       


After executing the code I m getting the msg as "COMMAND CREREPRT NOT FOUND" whereas CREREPRT is the macro that I am using and it is there in the MY.REXX.EXEC dataset where I have used the above code in a different member.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Tue Jul 29, 2008 8:54 am    Post subject: Reply to: How to edit the dataset after getting job info fro
Reply with quote

It would appear that your ISPF EDIT Macro CREREPRT is not in the proper system library for your site's macros (SYSPROC or SYSEXEC). Check with your Systems Programmers for the proper placment of ISPF EDIT macros.
Back to top
View user's profile Send private message
sandy123

New User


Joined: 25 Jul 2008
Posts: 4
Location: US

PostPosted: Tue Jul 29, 2008 10:17 am    Post subject: Reply to: How to edit the dataset after getting job info fro
Reply with quote

Hi Superk,

It is working fine now. Thanks a lot.
Back to top
View user's profile Send private message
sri_mf

Active User


Joined: 31 Aug 2006
Posts: 216
Location: India

PostPosted: Tue Jul 29, 2008 10:24 am    Post subject: Re: Reply to: How to edit the dataset after getting job info
Reply with quote

sandy123 wrote:
Hi Superk,

It is working fine now. Thanks a lot.


can you post that Sandy ..
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: Tue Jul 29, 2008 11:03 am    Post subject:
Reply with quote

Hello,

Quote:
can you post that Sandy ..
The code has already been posted.

The correction was placing the macro in the proper library - which is completely site-specific.

If i understood correctly. . .
Back to top
View user's profile Send private message
sandy123

New User


Joined: 25 Jul 2008
Posts: 4
Location: US

PostPosted: Tue Jul 29, 2008 11:27 am    Post subject: Reply to: How to edit the dataset after getting job info fro
Reply with quote

Hi,

The library was incorrect.
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 -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need info with DBRC recovery ashek15 IMS DB/DC 0 Mon Jan 23, 2017 6:43 am
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts IMS Database backup info ashek15 IMS DB/DC 14 Wed Nov 16, 2016 5:29 am
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


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