× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Dear ALL,
Thank you very much for all your input. I appreciate much help from you.

Regards,
Margie

On Thu, Jun 7, 2012 at 4:17 PM, McGovern, Sean
<Sean.McGovern@xxxxxxxxxxxx>wrote:

You could also experiment with something like this in System i Navigator...

SELECT 'LABEL ON COLUMN ' CONCAT TABLE_SCHEMA CONCAT '/' CONCAT TABLE_NAME
CONCAT ' (' CONCAT CAST(COLUMN_NAME AS CHAR(10)) CONCAT
' IS ''' CONCAT SUBSTR(COLUMN_TEXT,1,40) CONCAT '(' CONCAT
TRIM(COLUMN_NAME) CONCAT ')'');'
FROM QSYS2/SYSCOLUMNS
WHERE TABLE_NAME ='RCM' AND TABLE_SCHEMA ='mylib';

...which will give a results like so...

LABEL ON COLUMN GS1000/RCM (CMID IS 'Record ID (CM/CZ)
(CMID)');
LABEL ON COLUMN GS1000/RCM (CCUST IS 'Customer Number
(CCUST)');
LABEL ON COLUMN GS1000/RCM (CNME IS 'Customer Name
(CNME)');
LABEL ON COLUMN GS1000/RCM (CAD1 IS 'Company Address Line 1
(CAD1)');
LABEL ON COLUMN GS1000/RCM (CAD2 IS 'Company Address Line 2
(CAD2)');

...which when copy/paste is used back into System i Navigator and run,
will result in the following results...

Select * FROM mylib/RCM

Record ID (CM/CZ) Customer Number Customer Name
Company Address Line

1
(CMID) (CCUST) (CNME)
(CAD1)
CM 1,001 MYCOMP1
MYCOMP1 ADDR 1
CM 2,001 MYCOMP2
MYCOMP2 ADDR 1
CM 2,002 MYCOMP3
MYCOMP3 ADDR 1

(alignment will be out, but you should get the idea)



-----Original Message-----
From: bpcs-l-bounces@xxxxxxxxxxxx [mailto:bpcs-l-bounces@xxxxxxxxxxxx] On
Behalf Of Milt
Sent: 06 June 2012 18:07
To: BPCS user group
Subject: [BPCS-L] Field Column Headings of BPCS Files / how to fix the
column headings

<vendor>


Hi Margie .....

Since you wrote "BPCS" I'm speculating that the files you refer to were
generated from AS/SET. Column headings in AS/SET-generated files are
frequently difficult to interpret. For example: column headings for
"invoice date," "due date," and "ship date" all read "DATE" .... which
isn't helpful when retrieved with SQL or when printed.

"Decipher" software performs a one-time fix that makes BPCS column
headings understandable. More info:
<http://www.unbeatenpath.com/software/decipher/fixBPCS.pdf>
http://www.unbeatenpath.com/software/decipher/fixBPCS.pdf

The .pdf explains the root AS/SET issue.
By the way, when Decipher fixes column headings, it also performs a
one-time fix for edit codes and edit words.

Warm regards,
Milt Habeck
Unbeaten Path
(888) 874-8008
+262-681-3151
mhabeck @ unpath.com




</vendor>











From: Margareth Sere
Sent: Wednesday, June 06, 2012 4:16 AM
To: BPCS ERP System
Subject: [BPCS-L] Field Column Headings of BPCS Files

Dear ALL,
Apology if my question is not exactly related to BPCS. But the data I am
using comes from BPCS files. I was using SQL and when selecting to show
data
file records, the column headings showed the field text and not the field
names. Can anyone let me know how to show the field names in the column
heading instead of field text. I am not sure if it has to do with how the
BPCS files was created. Anyhow, how can I control it.

Sample of my SQL statement: SELECT * from RCM

Thank you so much for your help.

Regards,
Margie













--
This is the BPCS ERP System (BPCS-L) mailing list
To post a message email: BPCS-L@xxxxxxxxxxxx<mailto:BPCS-L@xxxxxxxxxxxx>
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/bpcs-l
or email: BPCS-L-request@xxxxxxxxxxxx<mailto:BPCS-L-request@xxxxxxxxxxxx>
Before posting, please take a moment to review the archives
at http://archive.midrange.com/bpcs-l.


--
This is the BPCS ERP System (BPCS-L) mailing list
To post a message email: BPCS-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/bpcs-l
or email: BPCS-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/bpcs-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.