|
From: Bradley Stone <bvstone@xxxxxxxxx>am
To: IBMi Open Source Roundtable <OpenSource@xxxxxxxxxxxx>
Date: 07/07/2016 11:06 AM
Subject: [IBMiOSS] Field Length using node.js
Sent by: "OpenSource" <opensource-bounces@xxxxxxxxxxxx>
I'm trying to retrieve the field length of the fields in a table that I
working with.field
The main reason I want the length is so when I create a dynamic input
for it, I can set the maxlength property for it.<snip>
Here's the file in question:
Field Name FMT Start Lngth Dec Key Field Description<snip>
ITITEM A 1 15 K01
ITIDESC A 16 30
ITPRICE P 46 9 02
ITQTY P 51 9 00
Here's what it's reporting for the lengths:
ITITEM=7
ITIDESC=8
ITPRICE=8
ITQTY=6
I get that for packed fields I'll probably need to do a littlemanipulation
with the numbers, but the description and item number, which arecharacter,
don't look right at all.
Any ideas?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.