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 can I read from MESSAGES of a job output?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How can I read from MESSAGES of a job output?
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: 1187
Location: Bangalore,India

PostPosted: Wed Jan 23, 2008 11:30 am    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Wed Jan 23, 2008 12:10 pm    Post subject: Reply to: How can I read from MESSAGES of a job output?
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    Post subject:
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    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Wed Jan 23, 2008 2:03 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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: 1105
Location: The Netherlands at Hole 19

PostPosted: Wed Jan 23, 2008 5:43 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Read of TDQ fails in LENGERR Tracy Hansen CICS 10 Wed Apr 05, 2017 12:10 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm


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