need help to check numeric check



Support for C, C++, COBOL, PL/I, Fortran and assembler applications' runtime Environment LE.

Re: need help to check numeric check

Postby gvenkateshmca » Wed Sep 16, 2015 1:41 pm

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
gvenkateshmca
 
Posts: 10
Joined: Mon Mar 23, 2015 6:21 pm
Has thanked: 0 time
Been thanked: 0 time

Re: need help to check numeric check

Postby BillyBoyo » Wed Sep 16, 2015 1:48 pm

Can you show how you've defined the field to CICS, please?
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: need help to check numeric check

Postby gvenkateshmca » Wed Sep 16, 2015 2:11 pm

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
gvenkateshmca
 
Posts: 10
Joined: Mon Mar 23, 2015 6:21 pm
Has thanked: 0 time
Been thanked: 0 time

Re: need help to check numeric check

Postby NicC » Wed Sep 16, 2015 7:17 pm

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
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

Previous

Return to Language Environment