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

Natural tip: Going to SDSF and back from Natural


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Feb 12, 2009 1:12 pm
Reply with quote

Sometimes, when you work under Natural, you want to look at your SDSF screens.

Instead of logging off from Natural, the following program will do the trick:
Code:
DEFINE DATA LOCAL                                           
01 #LENGTH (I4)                                   
END-DEFINE                                                 
*                                                           
IF *TPSYS = 'TSO'                                           
  CALL 'ISPLINK' 'CONTROL ' 'DISPLAY ' 'REFRESH  '         
*                                                           
  #LENGTH := 20                                             
  CALL 'ISPLINK' 'SELECT  ' #LENGTH "PGM(ISFISP) PARM(ST)" 
*                                                           
  CALL 'ISPLINK' 'CONTROL ' 'DISPLAY ' 'REFRESH  '         
ELSE                                                       
  SET CONTROL 'T=3279'                                     
  WRITE NOTITLE NOHDR                                       
    'TSO CoMmanD is only useable under TSO NATURAL' (V)     
END-IF                                                     
END                                                         


Enjoy... icon_biggrin.gif

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

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Sat Feb 21, 2009 9:00 am
Reply with quote

Ofer,

I will try this on Monday, I can not hold back my eagerness to try out this new trick..

Thanks for posting the tips.
Back to top
View user's profile Send private message
Madhanlal
Currently Banned

New User


Joined: 21 Apr 2007
Posts: 23
Location: Chennai

PostPosted: Mon Feb 23, 2009 10:57 am
Reply with quote

Hi Ofer

It was very informative.

I tried executing that code.

I got the following error:

ISPP100

Panel 'ISFPCU41' error
Panel not found.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Feb 23, 2009 3:50 pm
Reply with quote

Assuming you are working under TSO & ISPF, the SDSF panel library (which contains ISFPCU41) should be concatenated to ISPPLIB.

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

New User


Joined: 11 Mar 2007
Posts: 35
Location: Chennai

PostPosted: Mon Mar 30, 2009 7:09 pm
Reply with quote

I am getting the msg
TSO COMMAND IS ONLY USEABLE UNDER TSO NATURAL.
How can we assign something to *TPSYS?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Mar 30, 2009 11:44 pm
Reply with quote

*TPSYS is un-updatable system varibale. This variable is filled by Natural when you enter the Natural Nucleus. Natural simply puts there the current TP monitor (CICS/TSO/BATCH/COM-PLETE/etc.).

You have to work under TSO in order to invoke the TSO command.

What is your current setting?

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

New User


Joined: 11 Mar 2007
Posts: 35
Location: Chennai

PostPosted: Wed Apr 01, 2009 9:33 pm
Reply with quote

My current value for *TPSYS is CICS.
Normally we execurte natural codes from the CICS region.
Is there also a way wherein we run the natural codes from TSO region?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Apr 01, 2009 10:10 pm
Reply with quote

Natural can be edited/run from within all supported TP monitors (their list is in the fine manual). TSO is supported. In many places, Natural under TSO is the major Natural development environment, whereas CICS/Batch are for production.

There are many advantages for developing/running Natural under TSO, but this is an issue for another topic... icon_biggrin.gif

O.
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 -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts XDC SDSF output to temp dataset CLIST & REXX 4
No new posts Search string in job at regular Spool... CLIST & REXX 0
Search our Forums:

Back to Top