Thanks for your help
i am sure that i m getting spaces .
do you have any alternative solution for this check instead of the above logic(any generic solutions by using Justified right ). I have another filed which has 18 length so i need to same validations .
My main aim is if use entered any values leading spaces and trailing space with data we need to move all those spaces to zeroes before the number.
suppose
1bb -- 001
bb1 -- 001
like that
if 1b1 it is error
Thanks
Venkat
need help to check numeric check
-
- Posts: 10
- Joined: Mon Mar 23, 2015 6:21 pm
- Skillset: Mainframe
- Referer: WEBSITE
-
- Global moderator
- Posts: 3805
- Joined: Tue Jan 25, 2011 12:02 am
- Skillset: Easytrieve Plus, Cobol, Utilities, that sort of stuff
- Referer: Google
Re: need help to check numeric check
Can you show how you've defined the field to CICS, please?
-
- Posts: 10
- Joined: Mon Mar 23, 2015 6:21 pm
- Skillset: Mainframe
- Referer: WEBSITE
Re: need help to check numeric check
I have defined the map field as below
HEIGHT DFHMDF POS=(17,29),LENGTH=03,COLOR=RED,
HILIGHT=UNDERLINE,ATTRB=(UNPROT,NUM,FSET)
and in the program i have defined as below
10 WS99-MAP-HEAD-HEIGHT-A PIC X(01).
10 WS99-MAP-HEAD-HEIGHT-C PIC X(01).
10 WS99-MAP-HEAD-HEIGHT-H PIC X(01).
10 WS99-MAP-HEAD-HEIGHT PIC 9(03).
10 WS99-MAP-HEAD-HEIGHT-X REDEFINES WS99-MAP-HEAD-HEIGHT
15 WS99-MAP-HEAD-HEIGHT-R PIC X(03).
Thanks
Venkat
HEIGHT DFHMDF POS=(17,29),LENGTH=03,COLOR=RED,
HILIGHT=UNDERLINE,ATTRB=(UNPROT,NUM,FSET)
and in the program i have defined as below
10 WS99-MAP-HEAD-HEIGHT-A PIC X(01).
10 WS99-MAP-HEAD-HEIGHT-C PIC X(01).
10 WS99-MAP-HEAD-HEIGHT-H PIC X(01).
10 WS99-MAP-HEAD-HEIGHT PIC 9(03).
10 WS99-MAP-HEAD-HEIGHT-X REDEFINES WS99-MAP-HEAD-HEIGHT
15 WS99-MAP-HEAD-HEIGHT-R PIC X(03).
Thanks
Venkat
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: need help to check numeric check
it would help reading if you indented your level 15 and used the code tags.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
-
- Similar Topics
- Replies
- Views
- Last post
-
- 0
- 3483
-
by zeller56
View the latest post
Sun Oct 01, 2023 1:50 am
-
- 10
- 4093
-
by chillmo
View the latest post
Thu Mar 13, 2025 12:01 am
-
-
Security Check for Data centre migration
by aarvalar1 » Fri Apr 14, 2023 4:58 pm » in Mainframe Security - 2
- 2530
-
by aarvalar1
View the latest post
Mon Apr 17, 2023 2:50 pm
-
-
-
Getting 0F01C008 Error while running SMP/e Apply Check Job
by csakil » Tue Apr 06, 2021 10:58 pm » in System programming - 0
- 2842
-
by csakil
View the latest post
Tue Apr 06, 2021 10:58 pm
-
-
-
Need to check whether file is ESDS file or not by using REXX
by Devrana » Sat Oct 05, 2024 2:28 pm » in CLIST & REXX - 6
- 3074
-
by sergeyken
View the latest post
Tue Oct 08, 2024 5:25 pm
-