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

Clearing a panel field


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

New User


Joined: 11 Jun 2008
Posts: 2
Location: bangalore

PostPosted: Sat Jun 28, 2008 8:12 pm
Reply with quote

In my panel it's accepting 2 inputs from the user for eg. name and pin
and its validating. I've included the logic that if user doesn't enter anything it will populate as default value eg..if user doesn't enter pin panel will give as 1234..but infuture I felt that I have no need of this default value so I removed the vget and vput which I have used for this logic. The problem now is still while displaying the panel its showing eg pin = 1234 or whatever I have entered last I guess it's in temporay storage area. I don't have any idea to clear up this What do I need to do?

Code:

)panel
vget(name,pin)
if &pin=''
  &pin=1234
)proc
vput(name,pin)


Can we use vdel? If yes how?

Regards,
Ram.G
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Jun 30, 2008 2:21 pm
Reply with quote

Set the field to blank and remove any processing of the field from the panel.
Back to top
View user's profile Send private message
mail2ram1983

New User


Joined: 11 Jun 2008
Posts: 2
Location: bangalore

PostPosted: Tue Jul 01, 2008 8:02 pm
Reply with quote

thx for your response

but i have found VERASE can able to solve my problem
eg: "VERASE (variable-name)"

Can any one share the panel code which has scrol + PF keys function + browsing or editing the datasets through panels

any help will be greatly appreciated...

thx in advance
Ram.G
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Tue Jul 01, 2008 9:55 pm
Reply with quote

Is this related to 'clearing the panel field'?
Quote:

Can any one share the panel code which has scrol + PF keys function + browsing or editing the datasets through panels

If not, please start a new thread.

For clearing a field, I think you need an assignment statement in your panel:
Code:

)INIT
&PIN = ' '
&NAME = ' '
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Tue Jul 01, 2008 10:16 pm
Reply with quote

Code:
)panel
vget(name,pin)
if &pin=''
  &pin=1234
)proc
vput(name,pin)

Without relation to your question, there is something missing in your example.
Please, use COPY-PASTE and give us valid code or valid examples, we don't want to guess.

By the way, if you're displaying a panel from REXX, you don't need vget and vput, values are passed automagically.
If you use COBOL, you must use vget and vput.
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 Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts Call program, directly from panel CLIST & REXX 9
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
Search our Forums:

Back to Top