where's the field's value came from for panel



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

where's the field's value came from for panel

Postby marshall25 » Thu Mar 14, 2013 10:44 am

hi,all, I'm a new TSO$ISPF student,i found there are some fields not initialized or gaven value in panel, but if i issued the panel, the fields will have the value,my question is how can i find where the field's value comes from? is it from program or higher level which displayed the panel? thanks,
marshall25
 
Posts: 26
Joined: Mon Jun 20, 2011 9:14 am
Has thanked: 0 time
Been thanked: 0 time

Re: where's the field's value came from for panel

Postby Akatsukami » Thu Mar 14, 2013 2:51 pm

Remember that every named field in your panel corresponds to a variable in the driver code.

So, suppose your panel has a field named FOO. If a Rexx driver script contains
foo = "BAR"
address ispexec "DISPLAY PANEL(P1)"

then the panel will be displayed with "BAR" in field FOO.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: where's the field's value came from for panel

Postby marshall25 » Fri Mar 15, 2013 7:57 am

hi Akatsukamin,i got it, but another confuse was raised in my mind, u used 'display panel' in the example, how about to use 'select panel' instead? i just went through the ISPF panel service, but still not clear about 'display panel' and 'select panel', is that different 'select panel' uses 'CMD' to execute program in proc?
marshall25
 
Posts: 26
Joined: Mon Jun 20, 2011 9:14 am
Has thanked: 0 time
Been thanked: 0 time

Re: where's the field's value came from for panel

Postby enrico-sorichetti » Fri Mar 15, 2013 12:12 pm

see here for the basics...
http://publibz.boulder.ibm.com/cgi-bin/ ... 1028105440
pretty old, but still very useful for learning
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3003
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post