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

How can I read from MESSAGES of a job output?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ayansau

New User


Joined: 22 Jun 2007
Posts: 42
Location: Chennai

PostPosted: Wed Jan 23, 2008 11:19 am
Reply with quote

Quote:
--------DDNAME---STEP-----PRSTEP---STAT-ACT-C-GRP-D-SIZE-U-DEST----------------
_ 1 LOG * X 2 L
_ 2 JCL * X 542 L
_ 3 MESSAGES * X 690 L
_ 4 SYSOUT PSTY0010 JSTY0010 X
_ 5 SYSABEND PSTY0010 JSTY0010 X

How can i convert this MESSAGES to a dataset
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Wed Jan 23, 2008 11:30 am
Reply with quote

Hi Ayansau,

U can do it by giving XDC against JESMSGLG it.Please let me know if
I have not understood ur question
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Jan 23, 2008 12:10 pm
Reply with quote

ayansu,

Quote:
How can i convert this MESSAGES to a dataset


Your statement is not clear. Please explain your requirement clearly.
Back to top
View user's profile Send private message
priyamnavada

New User


Joined: 24 Dec 2005
Posts: 52
Location: hyderabad

PostPosted: Wed Jan 23, 2008 12:50 pm
Reply with quote

Is that a SPOOL output? If yes, type xdc in front of messages in spool, later it promts for the dataset name. type the name and mention the disp parameter as new, later press enter.

you will get the output in that new dataset.
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Wed Jan 23, 2008 1:29 pm
Reply with quote

or search about using SDSF in batch...you'll find something like this:

Code:
//SDSF     EXEC PGM=SDSF                                       
//SYSPRINT DD SYSOUT=*                                         
//REPORT   DD  DISP=(,CATLG),DSN=yourfilehere,                 
//   SPACE=(CYL,(1,1)),RECFM=FB,BLKSIZE=0                       
//SYSOUT   DD SYSOUT=*                                         
//ISFOUT   DD SYSOUT=*                                         
//ISFIN DD *                                                   
ST yourjobhere                                                 
FILTER JOBID = ????????                                         
FIND ???????? FIRST                                             
++?                                                             
FIND 'JESYSMSG'                                                 
++S                                                             
PRINT FILE REPORT                                               
PRINT 1 5                                                       
PRINT CLOSE                                                     
Back to top
View user's profile Send private message
ayansau

New User


Joined: 22 Jun 2007
Posts: 42
Location: Chennai

PostPosted: Wed Jan 23, 2008 1:42 pm
Reply with quote

priyamnavada wrote:
Is that a SPOOL output? If yes, type xdc in front of messages in spool, later it promts for the dataset name. type the name and mention the disp parameter as new, later press enter.

you will get the output in that new dataset.


Is this XDC a client specific command? Its not working for me.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Jan 23, 2008 2:03 pm
Reply with quote

XDC is an SDSF Action Character, and is well documented in the fine manual.

O.
Back to top
View user's profile Send private message
priyamnavada

New User


Joined: 24 Dec 2005
Posts: 52
Location: hyderabad

PostPosted: Wed Jan 23, 2008 2:20 pm
Reply with quote

ayansau wrote:

Quote:

Is this XDC a client specific command? Its not working for me.


did you try like this?

xdc should be typed in front of messages of a particular job instead not infront of a job's output.
Back to top
View user's profile Send private message
ayansau

New User


Joined: 22 Jun 2007
Posts: 42
Location: Chennai

PostPosted: Wed Jan 23, 2008 4:49 pm
Reply with quote

Code:
EXEC PGM=SDSF                                       


when i am trying to execute this program, its telling that could not find the program

Code:
E1  8 DSS20006E  MEMBER 'SDSF' WAS NOT FOUND.                           
E2  8 DSS20105E  'ISDXU03S SDSF': STEP WOULD ABEND, CODE 'S806'.       
Back to top
View user's profile Send private message
ayansau

New User


Joined: 22 Jun 2007
Posts: 42
Location: Chennai

PostPosted: Wed Jan 23, 2008 4:55 pm
Reply with quote

I have used the command as:

Code:
 --------DDNAME---STEP-----PRSTEP---STAT-ACT-C-GRP-D-SIZE-U-DEST----------------
 _    1  LOG      *                 HELD     X   1 H   32 L CBMDNODE           
 _    2  JCL      *                 HELD     X   1 H  268 L CBMDNODE           
 XDC  3  MESSAGES *                 DONE     X       1263 L CBMDNODE           
 _    4  SYSOUT   JSTY0010          DONE     X                                 
 _    5  SYSOUT   JSTY0020          HELD     X   1 H   59 L CBMDNODE           


no promt is coming...
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Wed Jan 23, 2008 5:43 pm
Reply with quote

The output is not HELD. Try it at the SYSOUT.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Random read in ESDS file by using RBA JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
Search our Forums:

Back to Top