Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Verify the value of one field depending on other field

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
thesumitk

Active User


Joined: 24 May 2013
Posts: 130
Location: INDIA

PostPosted: Mon Nov 18, 2013 4:24 pm    Post subject: Verify the value of one field depending on other field
Reply with quote

Hi All,

I am designing a panel where I want to verify one field behalf of one other field

for example
Code:
+                                                             
%   Enter N if you need the entire SAR report ==>_c+(Y/N)     
+   or                                                         
+   Enter date range    ====> from  _jdate1    + to _jdate2   
+                                                             
%   Enter the date in YYYY/MM/DD format                       
+                                                             
+   Enter the number of jobs you want to report==>_n1+         
+                                                             
+            $ Hit PF3 to exit or  Enter to Process         
 )INIT                 
 &n1='01'               
 &jdate1 ='0001/01/01' 
 &jdate2 ='9999/12/31' 
 &c='Y'                 
)PROC                 
 IF (.PFKEY = PF03)   
     &pfkey = 3       
 VER (&email,NB)     
 VER (&name,NB)       
 VER (&id,NB)         
 VER (&jdate1,stddate)
 VER (&jdate1,stddate)
)END                     


So in above code I want the Value of "_c" y when soem has enter the dates value if _c is changed to N and the date values also been entered then it should not accept it and perhaps I would ike to notify user for the same

Can some one please show me a way for it ..
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2002
Location: UK

PostPosted: Mon Nov 18, 2013 4:54 pm    Post subject:
Reply with quote

Heard of the IF statement? You should have as you have one in your )PROC section.
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 How to include a particular field val... sakrat DFSORT/ICETOOL 8 Fri Apr 06, 2018 8:27 pm
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
This topic is locked: you cannot edit posts or make replies. Incrementing current time field by 30... arunsoods DFSORT/ICETOOL 11 Thu Oct 26, 2017 3:22 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us