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

Verify the value of one field depending on other field


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

Active User


Joined: 24 May 2013
Posts: 156
Location: INDIA

PostPosted: Mon Nov 18, 2013 4:24 pm
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: 2455
Location: Hampshire, UK

PostPosted: Mon Nov 18, 2013 4:54 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts S0C7 - Field getting overlayed COBOL Programming 2
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
Search our Forums:

Back to Top