HP3000-L Archives

January 2001, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Pete Vickers <[log in to unmask]>
Reply To:
Pete Vickers <[log in to unmask]>
Date:
Mon, 8 Jan 2001 13:32:09 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (47 lines)
Hi ,
digging in my code finds:
...
005 WORK-TABLE    PIC X(18) OCCURS 5.
...


IF WORK-TABLE(2)(2:1) > " " Then ....

Hope this helps

Pete



--
Pete Vickers - HP3000 Select Systems Integrator
Phone: (44) 1204 657497
Fax:      (44) 1204 450927
Mobile: (44) 7860 907493
www.petevick.demon.co.uk

"Kim Borgman" <[log in to unmask]> wrote in message
news:93cuf401dm3@enews1.newsguy.com...
> Here is a good one for someone.
>
> Using cobol to generate a rpt.  Want to test the 11th item in an array.
> (occurs 42 times).
>
> But I want to test the 3rd character of that field to see if it is numeric
> or not.  Normally I would do:  FIELD(3:1), but I have to look at the array
> now.
>
> I tried FIELD(11)(3:1).  Error.
> also tried FIELD(11),(3:1).  Error.
>
> Any advice out there ?
>
> Yes I can move it to a working storage area and test it there, but I
should
> be able to do it with one command.
>
> Mr Kim Borgman - IS Mgr
> NWS Corp
> 317-636-6092 x1399
>

ATOM RSS1 RSS2