Geeks Talk

Prepare for your Next Interview




CICS Validation

This is a discussion on CICS Validation within the MainFrame forums, part of the Software Development category; I have cics screen on which I have defined a variable as account number pic X(10) . and in my program I need to accept them into Pic 9(10). ...


Go Back   Geeks Talk > Software Development > MainFrame

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-01-2008
Junior Member
 
Join Date: Apr 2008
Location: HYDERABAD
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
supriya_saraswat is on a distinguished road
CICS Validation

I have cics screen on which I have defined a variable as account number pic X(10) . and in my program I need to accept them into Pic 9(10).
I need to validate the screen and in the program
for below conditions.
If the user enters A1234 then the program should not accept this.
If the user enters 1234 and a space and 5 then also it should not accept.
if the user enters 3 or 4 spaces and then enters 1234 and then spaces then the program should treat this as valid entry and then continue executing the program.

How do you validate all the conditions in single para.
Reply With Quote
The Following User Says Thank You to supriya_saraswat For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 05-05-2008
Junior Member
 
Join Date: May 2008
Location: ind
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
uma_mca2007 is on a distinguished road
Re: CICS Validation

from ur query i feel that u wanna to accept only numners.

give NUM option for that particular input field in CICS Map.
Reply With Quote
  #3 (permalink)  
Old 05-13-2008
Junior Member
 
Join Date: Apr 2008
Location: Noida
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
prasenjit_in is on a distinguished road
Re: CICS Validation

hey i feel what uma had written will only solve the problem partially...what will happen in 2nd and 3rd case...correct me if i am wrong....
Reply With Quote
  #4 (permalink)  
Old 05-19-2008
Junior Member
 
Join Date: May 2008
Location: Aurora, ON
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
pkganapathi is on a distinguished road
Re: CICS Validation

Supriya,
The normal technique is as follows:
1. Accept the input as VARIABLE X(10) and then redefine it to a 9(10).
2. Define the edit criteria in your program for the conditions you have specified. If VARIABLE IS NUMERIC etc etc.
3. To support your 3rd case, you can also use LEFT JUSTIFIED or scan for spaces.

In any case, the best way is to use X(10). You can use 9(10) from the start, however, you have to take care of preventing S0C7s.

Good luck and let us know which technique you followed.

Thanks,
-PK

Quote:
Originally Posted by supriya_saraswat View Post
I have cics screen on which I have defined a variable as account number pic X(10) . and in my program I need to accept them into Pic 9(10).
I need to validate the screen and in the program
for below conditions.
If the user enters A1234 then the program should not accept this.
If the user enters 1234 and a space and 5 then also it should not accept.
if the user enters 3 or 4 spaces and then enters 1234 and then spaces then the program should treat this as valid entry and then continue executing the program.

How do you validate all the conditions in single para.
Reply With Quote
  #5 (permalink)  
Old 07-22-2008
Junior Member
 
Join Date: Jul 2008
Location: chennai
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
lokeshvsn is on a distinguished road
Re: CICS Validation

u can perform numerical test in the para validating the input, the condition failing on which u can inspect the input for leading spaces and still pass the condition.. unstring the spaces and the field seperately and move the field into 9() item.
Reply With Quote
Reply

  Geeks Talk > Software Development > MainFrame


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
embbeding sql and cics in rexx teddy MainFrame 1 3 Weeks Ago 12:38 PM
Inspect verb in cics sai mainframes MainFrame 2 08-22-2008 06:25 AM
How to test CICS, MainFrame applications? JobHelper Testing Issues 8 07-25-2008 03:56 PM
Converting batch CICS environment Carmine DB2 0 05-01-2008 10:30 AM
Practise JCL/COBOL/CICS from home Geek_Guest Career Advice 1 10-18-2007 08:14 AM


All times are GMT -4. The time now is 05:17 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved