Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 215
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 exec macro in the end of edit anatol CLIST & REXX 1 Fri Sep 22, 2017 5:10 am
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us