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

How to create input field of more than 1 line in panel?


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

New User


Joined: 29 Aug 2008
Posts: 10
Location: Bangalore

PostPosted: Tue Oct 05, 2010 8:37 am
Reply with quote

my panel is like this:
)ATTR
_ TYPE(INPUT) INTENS(HIGH) COLOR(RED)
% TYPE(TEXT) INTENS(LOW) SKIP(ON)
+ TYPE(TEXT) INTENS(HIGH) SKIP(ON) PAD(_)
)BODY
%
%Field 1 : _field1
%
%Field 2: _field2
)END

I know that after entering some value to the field1, the cursor automatically goes to field2. But I want my field1 accept 2 lines of data. But after completing the first line, it automatically goes to field 2, Please help in doing this.
Back to top
View user's profile Send private message
kacks7

New User


Joined: 22 Sep 2010
Posts: 33
Location: chennai(india)

PostPosted: Tue Oct 05, 2010 2:54 pm
Reply with quote

hi

remove the '%' in the 3rd line of the body section.

Code:

)ATTR
_ TYPE(INPUT) INTENS(HIGH) COLOR(RED)
% TYPE(TEXT) INTENS(LOW) SKIP(ON)
+ TYPE(TEXT) INTENS(HIGH) SKIP(ON) PAD(_)
)BODY
%
%Field 1 : _field1
 
%Field 2: _field2
)END
Back to top
View user's profile Send private message
manigadu

New User


Joined: 29 Aug 2008
Posts: 10
Location: Bangalore

PostPosted: Tue Oct 05, 2010 4:46 pm
Reply with quote

Thank you very much kacks5, I am learning REXX, and may be you think my questions are very basic. But REXX is really interesting.

I have another question. In any normal ispf panel, the input field contains
a blank (________________) when nothing is entered. Where we can overwrite our data. How can we do that in the REXX Panel?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Oct 05, 2010 4:59 pm
Reply with quote

you would find info easier in the manuals if you would not refer to panels as rexx panels - since they are not.

This is a link to the z/OS ISPF Library. I would start with the dialog devel guide, which discusses ISPF PANELS.

although they will not help you very much understanding ISPF Panels (above reference) the following are libraries and documents concerning REXX:

This is all REXX documents.

This is the REXX Reference Manual
and
this is the REXX User's Guide
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Tue Oct 05, 2010 6:41 pm
Reply with quote

I think you were asking about underscores. Try this:
Code:

)ATTR
_ TYPE(INPUT) INTENS(HIGH) COLOR(TURQ) HILITE(USCORE)
Back to top
View user's profile Send private message
kacks7

New User


Joined: 22 Sep 2010
Posts: 33
Location: chennai(india)

PostPosted: Wed Oct 06, 2010 11:36 am
Reply with quote

hi manigadu,
for more details go through the manuals posted by 'dick'.




Code:

_ TYPE(INPUT) INTENS(HIGH) COLOR(TURQ) HILITE(USCORE)



we can also use the following.
Code:

_ TYPE(INPUT) INTENS(HIGH) COLOR(TURQ) PAD(_)


replace the '_' winthin the brackets of PAD with whatever u want.
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Wed Oct 06, 2010 7:36 pm
Reply with quote

Please do not use PAD(_) .

You may think it is trivial, but it makes it hard to type in your field. If you make a mistake and need to insert a character, you cannot without deleting your '_' at the end of the string.
Back to top
View user's profile Send private message
manigadu

New User


Joined: 29 Aug 2008
Posts: 10
Location: Bangalore

PostPosted: Wed Oct 06, 2010 8:07 pm
Reply with quote

Thanks Pedro, Any way I have used
_ TYPE(INPUT) INTENS(HIGH) COLOR(TURQ) HILITE(USCORE)

and it is working. Thanks once again and you guys are giving a good motivation for me to learn more about REXX.

Thanks a lot !!
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Wed Oct 06, 2010 9:26 pm
Reply with quote

Quote:
good motivation for me to learn more about REXX.

This was an ISPF discussion, not a rexx discussion.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Wed Oct 06, 2010 9:57 pm
Reply with quote

But, by all means - learn more of both icon_smile.gif

d
Back to top
View user's profile Send private message
kacks7

New User


Joined: 22 Sep 2010
Posts: 33
Location: chennai(india)

PostPosted: Thu Oct 07, 2010 11:15 am
Reply with quote

hi pedro,

Quote:
Please do not use PAD(_) .


could you please explain more...
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Thu Oct 07, 2010 7:18 pm
Reply with quote

repeating:

You may think it is trivial, but it makes it hard to type in your field. If you make a mistake and need to insert a character, you cannot insert without deleting your '_' at the end of the string.
Back to top
View user's profile Send private message
kacks7

New User


Joined: 22 Sep 2010
Posts: 33
Location: chennai(india)

PostPosted: Fri Oct 08, 2010 11:54 am
Reply with quote

hi Pedro,

got your point. thank you. but a doubt, incase if i want to make a line with any other character like '.' instead of uscore what i need to use.??
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Fri Oct 08, 2010 1:16 pm
Reply with quote

Pedro wrote:
Please do not use PAD(_) .

You may think it is trivial, but it makes it hard to type in your field. If you make a mistake and need to insert a character, you cannot without deleting your '_' at the end of the string.



completely agree... pretty (?) BUT annoying
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Fri Oct 08, 2010 7:42 pm
Reply with quote

I think I know what you are asking...

Multiple choice action lists should use USCORE. Use HILITE(USCORE)

Single choice action lists should use a period. use PAD(.) Only the selection field should have the pad.

There is a tradeoff in giving the user a visual clue about the use the list. This is the only case that I can think of to use PAD(.) instead of HILITE.h
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 Help required to reset decimal points... DFSORT/ICETOOL 8
No new posts COBOL sorting, with input GDG base COBOL Programming 7
No new posts Sorting Date Field DFSORT/ICETOOL 4
No new posts Preserve changes to ISPF Panel Variables TSO/ISPF 5
No new posts Concatenate 2 input datasets and give... JCL & VSAM 2
Search our Forums:

Back to Top