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
 

 

Clearing a panel field

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Clearing a panel field
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jun 30, 2008 2:21 pm    Post subject:
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    Post subject: panel display
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

Senior Member


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

PostPosted: Tue Jul 01, 2008 9:55 pm    Post subject: Reply to: Clearing a panel field
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: 1228
Location: Israel

PostPosted: Tue Jul 01, 2008 10:16 pm    Post subject:
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    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 READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 4 Mon Apr 24, 2017 11:49 am
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am


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