ISPF PANEL



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

ISPF PANEL

Postby anand4u237 » Sat Mar 09, 2013 12:47 pm

Hello everyone,

Currently i am working on an enhancement of a tool which submits a job to perform certian task (for Security reasons i cant disclose entire functionality of the tool). For your understanding i am explaining a bit. There are two Panels, the frist one takes the input and verify the entered input and pass it to second
Panel, now the second panel receives the input and submits a job when the user press the "enter" key.

Problem-
When the second panel receive the input from the frist one in it respective fields i see all most all the fields are editable that mean i can change the value in the second panel such as date etc etc. This means that we are messing with the frist panel out put which validates the input and pass to the second panel.

I would like to know is there any way so that i can mask some fields(Ex- Date) of the second screen so that it can't be edited by any means and protecting the validated inputs.

I would appriciate any help from all of you guys.

Thanks
Anand.
anand4u237
 
Posts: 15
Joined: Mon May 17, 2010 12:05 pm
Location: India
Has thanked: 4 times
Been thanked: 0 time

Re: ISPF PANEL

Postby prino » Sat Mar 09, 2013 1:58 pm

anand4u237 wrote:Currently i am working on an enhancement of a REXX tool which submits a job to perform certian task.(for Security reasons i cant disclose entire functionality of the tool)

Security reasons? The words London Underground Limited and Cookies spring to mind... :mrgreen:

anand4u237 wrote:For your understanding i am explaining a bit. There are two Panels, the frist one takes the input and verify the entered input and pass it to second Panel, now the second panel receives the input and submits a job when the user press the "enter" key.

Creating two panels = two sets of billable hours, we understand.

anand4u237 wrote:Problem-
When the second panel receive the input from the frist one in it respective fields i see all most all the fields are editable that mean i can change the value in the second panel such as date etc etc. This means that we are messing with the frist panel out put which validates the input and pass to the second panel.

I would like to know is there any way so that i can mask some fields(Ex- Date) of the second screen so that it can't be edited by any means and protecting the validated inputs.

Submit from the first panel, sheesh, was that so difficult?
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 641
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 29 times

Re: ISPF PANEL

Postby anand4u237 » Sat Mar 09, 2013 2:23 pm

Thanks Prino that was an awesome reply and quite effective too. Anyways i understand peoples at your age do act weired.

Thanks for the suggestion.
anand4u237
 
Posts: 15
Joined: Mon May 17, 2010 12:05 pm
Location: India
Has thanked: 4 times
Been thanked: 0 time

Re: ISPF PANEL

Postby NicC » Sat Mar 09, 2013 5:59 pm

Suggest you look in the manual and study ATTRibutes.

Also, as Prino pointed out - what is the point of the second panel if you have all the information from the first.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic

These users thanked the author NicC for the post:
anand4u237 (Mon Mar 11, 2013 10:59 am)
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: ISPF PANEL

Postby Pedro » Sat Mar 09, 2013 9:21 pm

If you do not want to allow user input into a field, change the attribute in the )ATTR section. That is the first choice.

If you sometimes want input and sometimes not, you need to use the .ATTR function in the )INIT section. Set a flag in panel1 and in pane2 check the flag and conditionally use .ATTR.
Pedro Vera

These users thanked the author Pedro for the post:
anand4u237 (Mon Mar 11, 2013 10:58 am)
User avatar
Pedro
 
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times

Re: ISPF PANEL

Postby anand4u237 » Mon Mar 11, 2013 10:55 am

Hi NicC,

As i have already told this is a pre developed application i am doing as i have been told by the clients i still think both the panels can be incorporated in a single panel.

I think Pedro suggesion could work, will update you once i test this solution


Regards, Anand.
anand4u237
 
Posts: 15
Joined: Mon May 17, 2010 12:05 pm
Location: India
Has thanked: 4 times
Been thanked: 0 time

Re: ISPF PANEL

Postby anand4u237 » Tue Apr 16, 2013 5:44 pm

frist of all thanks for your valuable input to this post the suggestion provided by pedro worked i had made changes to .ATTR and )INIT section and it worked.

I have another question regarding nagivating panel in the program. The program is invoking ISPEXEC DISPLAY PANEL(CUSTOM2)
after some processing i want the program to return back the control to CUSTOM1 panel again. If i am using ISPEXEC DISPLAY it starting
a new screen. I need to get to the same CUSTOM1 screen. I tried EXIT but i also need to display a message to the CUSTOM1 screen which will be passed from CUSTOM2 program, hence i am not getting the message in but i can succesfully get back to CUSTOM1 screen.

Waiting for your valuable input.

Regards
Anand.
anand4u237
 
Posts: 15
Joined: Mon May 17, 2010 12:05 pm
Location: India
Has thanked: 4 times
Been thanked: 0 time

Re: ISPF PANEL

Postby Pedro » Tue Apr 16, 2013 7:07 pm

i also need to display a message

1. In CUSTOM2, set a variable to the message number.
2. In rexx exec, check the variable and issue SETMSG.
3. Then display panel CUSTOM1. The message will appear there.
Pedro Vera
User avatar
Pedro
 
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post