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

Designing a panel in which input file should given by user


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
lokeshwar_manoharan

New User


Joined: 22 Sep 2008
Posts: 49
Location: Chennai,Tamilnadu

PostPosted: Tue Nov 18, 2008 10:15 pm
Reply with quote

Hi,

I am designing a panel in which input file should be given by user. I need to check
whether he has entered a valid DSN name and also it should be catloged
I can check whether it is a valid DSN name as

VER(&INPUT,NB,DSNAME)

But I also want to check it is catloged. If it is not, I should throw a message saying that 'The input file entered is not catloged'.

How can I achieve this?

Thanks,
Lokesh
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Tue Nov 18, 2008 10:43 pm
Reply with quote

I guess that I'd try a panel REXX routine:

)PROC
VER(&INPUT,NB,DSNAME)
*REXX(INPUT)
x = SYSDSN("'"input"'")
...
some logic here
...
EXIT 0
*ENDREXX
Back to top
View user's profile Send private message
lokeshwar_manoharan

New User


Joined: 22 Sep 2008
Posts: 49
Location: Chennai,Tamilnadu

PostPosted: Tue Nov 18, 2008 11:08 pm
Reply with quote

I tried this But its not working. MSG1 is not identified after REXX code

Code:

*REXX                             
IF SYSDSN(''INPUT'') <> 'OK' THEN 
MSG1 = 'INPUT NOT CATLOGED'       
*ENDREXX                           
IF (&MSG1 ¬= ' ')                 
.MSG = MSG1                       
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Wed Nov 19, 2008 3:47 am
Reply with quote

Not sure, but look here:
publibz.boulder.ibm.com/epubs/pdf/ispzdg70.pdf
for the description of *REXX and how to pass variables. And look at the example program on page 268. Also, look at ZRXMSG
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Wed Nov 19, 2008 9:32 am
Reply with quote

Searchng Google "*REXX" "panel exit" sysdsn shows what looks like a complete example
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
Search our Forums:

Back to Top