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
 

 

Regarding SYSPRINT and SYSTERM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
smaru

New User


Joined: 22 Oct 2008
Posts: 49
Location: India

PostPosted: Wed Feb 04, 2009 6:50 am    Post subject: Regarding SYSPRINT and SYSTERM
Reply with quote

I have the following simple Rexx command in one of a member in my pds,

/* REXX */
Say 'HI'
Exit

When I execute the above rexx, I can see the display as 'HI' on a SCREEN.

Please let me know, Is that the TERMINAL where I see the output.

if so, how this is dirested to my terminal.
Back to top
View user's profile Send private message

dick scherrer

Site Director


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

PostPosted: Wed Feb 04, 2009 7:14 am    Post subject:
Reply with quote

Hello,

At the top of the page is a link to "IBM Manuals". QAmong them it the REXX Reference.

Search that manual (using the flashlight/tubelight near the top left) for SAY.

If you find something that is not clear in the manual, post what you found and your question about it. Someone will be able to clarify.
Back to top
View user's profile Send private message
smaru

New User


Joined: 22 Oct 2008
Posts: 49
Location: India

PostPosted: Wed Feb 04, 2009 9:23 am    Post subject:
Reply with quote

As mentioned in the manual, if the above function is executed as a TSO command the output is directed to SYSTSPRT. My query is about capturing this Output to a dataset.

Is that Possible?

I have tried the following options,

Example1:
Executed the LISTD command in rexx and was able to capture the output through OUTTRAP into a dataset.

/* rexx */
call outtrap ‘trap.’
“Listd ’sys1.parmlib’ mem”
call outtrap ‘off’
do i = 1 to trap.0
say trap.i
end
"Alloc f(ex4dd) ds(ex4.temp) new spa(30,30) tr",
"recfm(f b) lrecl(133) blksize(0)"
"Execio * diskw ex4dd (finis stem trap."
Address ISPExec "Browse Dataset(ex4.temp)"
"Free f(ex4dd) delete"

Example2:
/* rexx */
call outtrap stem.
say '1'
say '2'
say '3'
say '4'
call outtrap 'off'
do i = 1 to stem.0
say stem.i
end

The execution of Example1 was successfull. In the same way I wanted the Example2 to capture values 1 2 3 4 into stem.i, which is not happenning.

Please let me know, What is differing between Example 1 and 2.

I have tried my best to explain it. Let me know incase you need some more information.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2025
Location: Silicon Valley

PostPosted: Wed Feb 04, 2009 9:43 pm    Post subject: Reply to: Regarding SYSPRINT and SYSTERM
Reply with quote

You do not need to use OUTTRAP and SAY. You can work directly with stem variables:
Code:

stem.1 = '1'
stem.2 = '2'
stem.3 = '3'
stem.4 = '4'

stem.0 = 4

Then follow with EXECIO to write your stem to a file.
Back to top
View user's profile Send private message
smaru

New User


Joined: 22 Oct 2008
Posts: 49
Location: India

PostPosted: Thu Feb 05, 2009 2:13 am    Post subject:
Reply with quote

The reason behind posting the example 2 is,

There is a Rexx command in my mainframe environment (i really dont no from where it executes) and when its executed i see some displays. I think those display where a part of the SAY statement in that rexx command.
My intension is to capture those displays in to a dataset. I am still looking for options and wanted to knowif any has already tried anything of this sort.
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Thu Feb 05, 2009 2:15 am    Post subject: Reply to: Regarding SYSPRINT and SYSTERM
Reply with quote

Srikanth, you need to read the documentation regarding the usage of the OUTTRAP command. It details what types of messages are available to be trapped, and which ones aren't.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ICETOOL/SYNCSORT - SYSPRINT output nartcr DFSORT/ICETOOL 17 Wed Oct 05, 2016 10:46 pm
No new posts Easytrieve - how to write output to S... ramsri CA Products 4 Fri Jul 27, 2012 8:01 pm
This topic is locked: you cannot edit posts or make replies. One SYSPRINT for multiple file copy u... gcicchet Mainframe Interview Questions 15 Wed May 25, 2011 12:01 pm
No new posts Sysprint not appearing in Spool dick scherrer JCL & VSAM 4 Thu Jan 07, 2010 5:34 pm
No new posts SYSPRINT dataset expat JCL & VSAM 11 Mon Dec 21, 2009 3:35 pm


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