View previous topic :: View next topic
|
Author |
Message |
sandy123
New User
Joined: 25 Jul 2008 Posts: 4 Location: US
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
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 |
|
|
sandy123
New User
Joined: 25 Jul 2008 Posts: 4 Location: US
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
sandy123
New User
Joined: 25 Jul 2008 Posts: 4 Location: US
|
|
|
|
Hi Superk,
It is working fine now. Thanks a lot. |
|
Back to top |
|
|
sri_mf
Active User
Joined: 31 Aug 2006 Posts: 218 Location: India
|
|
|
|
sandy123 wrote: |
Hi Superk,
It is working fine now. Thanks a lot. |
can you post that Sandy .. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
sandy123
New User
Joined: 25 Jul 2008 Posts: 4 Location: US
|
|
|
|
Hi,
The library was incorrect. |
|
Back to top |
|
|
|