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

How to edit the dataset after getting job info from spool


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
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
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

Superior Member


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

PostPosted: Mon Jul 28, 2008 1:25 pm
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
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

Global Moderator


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

PostPosted: Tue Jul 29, 2008 8:54 am
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
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: 218
Location: India

PostPosted: Tue Jul 29, 2008 10:24 am
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

Moderator Emeritus


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

PostPosted: Tue Jul 29, 2008 11:03 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top