need help to check numeric check

Support for C, C++, COBOL, PL/I, Fortran and assembler applications' runtime Environment LE.
gvenkateshmca
Posts: 10
Joined: Mon Mar 23, 2015 6:21 pm
Skillset: Mainframe
Referer: WEBSITE

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

BillyBoyo
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

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

Can you show how you've defined the field to CICS, please?

gvenkateshmca
Posts: 10
Joined: Mon Mar 23, 2015 6:21 pm
Skillset: Mainframe
Referer: WEBSITE

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

NicC
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

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


  • Similar Topics
    Replies
    Views
    Last post