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

Route sysout message to jes message


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

New User


Joined: 11 Jan 2008
Posts: 66
Location: India

PostPosted: Mon Feb 16, 2009 7:16 pm
Reply with quote

Hi All,

Normally we get output in spool(sysout). But i want that message to be routed to jes message. Is it possible? If yes, How?

Thanks,
Rajulan.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Feb 16, 2009 7:19 pm
Reply with quote

What do you mean by a JES message ?
Back to top
View user's profile Send private message
rajulan

New User


Joined: 11 Jan 2008
Posts: 66
Location: India

PostPosted: Tue Feb 17, 2009 10:31 am
Reply with quote

NP DDNAME StepName ProcStep DSID Owner C Dest Rec-Cnt Page
JESMSGLG JES2 2 OZA058 A LOCAL 22
JESJCL JES2 3 OZA058 A LOCAL 35
JESYSMSG JES2 4 OZA058 A LOCAL 96
SYSPRINT STEP1 COMPILE 101 OZA058 A LOCAL 475
SYSPRINT STEP1 LKED 102 OZA058 A LOCAL 185

Thanks,
Rajulan.
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 Feb 17, 2009 10:53 am
Reply with quote

Hello,

The first 3 sysout datasets are written by jes - for those specific sets of info.

What do you want to accomplish? It is possible to combine the content of one (or all 3 jes) dataset along with some of the user created sysouts in a dataset.

Once gathered as you want, how will this be used?
Back to top
View user's profile Send private message
rajulan

New User


Joined: 11 Jan 2008
Posts: 66
Location: India

PostPosted: Tue Feb 17, 2009 11:07 am
Reply with quote

Quote:
It is possible to combine the content of one (or all 3 jes) dataset along with some of the user created sysouts in a dataset.


Is it Possible? If yes, How?

Quote:
Once gathered as you want, how will this be used?


My colleague told me it is possible. But he does not know how it is possible. So I am here for help.

Thanks,
Rajulan.
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 Feb 17, 2009 11:18 am
Reply with quote

Hello,

If you are online, looking at the output via sdsf, you can use XDC to print queued output to a dasd file. There are multiple topics that mention xdc in the forum.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Feb 17, 2009 11:19 am
Reply with quote

Rajulan,

Are you trying to route the DISPLAY outputs issued by a COBOL program to the JESYSMSG? My previous shop had some Assembler code to achieve the same.
Back to top
View user's profile Send private message
rajulan

New User


Joined: 11 Jan 2008
Posts: 66
Location: India

PostPosted: Tue Feb 17, 2009 4:29 pm
Reply with quote

To Dick,

JESMSGLG JES2
JESJCL JES2
JESYSMSG JES2
XDC SYSOUT STEP1


I issued like above. I got the below screen.

Code:
                             SDSF Open Print Data Set                         
 COMMAND INPUT ===>                                            SCROLL ===> HALF
                                                                               
                                                                               
 Data set name  ===>                                                           
 Member to use  ===>                                                           
 Disposition    ===>            (OLD, NEW, SHR, MOD)                           
                                                                               
 If the data set is to be created, specify the following.                     
 Volume serial will be used to locate existing data sets if specified.         
                                                                               
 Management class     ===>           (Blank for default management class)     
 Storage class        ===>           (Blank for default storage class)         
   Volume serial      ===>           (Blank for authorized default volume)     
   Device type        ===>           (Generic unit or device address)         
 Data class           ===>           (Blank for default data class)           
   Space units        ===> BLKS      (BLKS, TRKS, CYLS, BY, KB, or MB)         
   Primary quantity   ===> 500       (In above units)                         
   Secondary quantity ===> 500       (In above units)                         
   Directory blocks   ===>           (Zero for sequential data set)           
   Record format      ===> VBA                                                 
   Record length      ===> 240                                                 
  F1=HELP      F2=SPLIT     F3=END       F4=RETURN    F5=IFIND     F6=BOOK     
  F7=UP        F8=DOWN      F9=SWAP     F10=LEFT     F11=RIGHT    F12=RETRIEVE



Is this helpful to print the sysout?


To arcvns,


Quote:
Are you trying to route the DISPLAY outputs issued by a COBOL program to the JESYSMSG?


Yes. Now i got the answer too.

The answer is

In the cobol program, we have to code like below in display statement.

Code:
 Display 'Ibm Mainframe Forum' upon console


Finally display message went to JESMSGLG

Assembler i do not have any idea. Anyhow now i came to know that it can be done by Assembler as well

Thanks,
Rajulan.
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 Feb 17, 2009 11:32 pm
Reply with quote

Hello,

Quote:
Display 'Ibm Mainframe Forum' upon console
Suggest you get confirmation that this is acceptable in your organization (not just from your manager, but the people responsible for the data center). Most organizations will not allow application programs to write to the console. . .

Just because the compiler will allow this does not mean it is acceptable by the system management.
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
This topic is locked: you cannot edit posts or make replies. how can I proof that message was post... Java & MQSeries 1
No new posts IMS Message : DFS3577A IMS DB/DC 4
No new posts Copy few lines from SYSOUT of 10 mill... All Other Mainframe Topics 5
No new posts dsnrexx fails without error message CLIST & REXX 9
No new posts Print out all lines with 'IBM' compil... CLIST & REXX 8
Search our Forums:

Back to Top