Solved

Use of "TRIM" in DDS Logical File declaration

Posted on 2008-10-01
2
945 Views
Last Modified: 2012-05-05
When building a Logical File Definition using DDS ...

... SST is the SUBSTRING function
0009.00      A            WHOOWNS            I      SST(TLTBLS 26 5)

That's great ... but ...
I need the WHOOWNS field value LEFT SET and LEFT TRIMMED
Because SST(TLTBLS 26 5) actually evaluates to "  XYZ" and "    A" and "   ZA"

How?
0
Comment
Question by:volking
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 18

Accepted Solution

by:
daveslash earned 500 total points
ID: 22615628

Just in case you don't get what you're looking for, you may have more success with your question here:

http://www.experts-exchange.com/Programming/System/AS_-_400/

-- DaveSlash
0
 
LVL 5

Author Comment

by:volking
ID: 22615636
RATS!
DANG IT!
HOLY SMOKES!

A TRIM type function may NOT EXIST in DDS ... because, the documentation says these are the ONLY keywords and I've checked EVERY ONE for a TRIM type function ....

The following keywords are valid for both physical and logical files (except where noted):
ABSVAL
ALIAS
ALL (logical files only)
ALTSEQ
ALWNULL (physical files only)
CCSID (physical files only)
CHECK
CHKMSGID
CMP
COLHDG
COMP
CONCAT (logical files only)
DATFMT
DATSEP
DESCEND
DFT (physical files only)
DIGIT
DYNSLT (logical files only)
EDTCDE
EDTWRD
FCFO
FIFO
FLTPCN
FORMAT
LIFO
NOALTSEQ
RANGE
REF (physical files only)
REFFLD (physical files only)
REFSHIFT
RENAME (logical files only)
SIGNED
SST (logical files only)
TEXT
TIMFMT
TIMSEP
TRNTBL (logical files only)
UNIQUE
UNSIGNED
VALUES
VARLEN
ZONE

The following keywords are valid only for simple and multiple format logical files:
PFILE
REFACCPTH

The following keywords are valid only for join logical files:
JDFTVAL
JDUPSEQ
JFILE
JFLD
JOIN
JREF

When you use DDS to describe a source file (usually created without DDS, using the CRTSRCPF command) or when a logical file is based on a physical file to be used as a source file, you cannot use the following keywords:
ABSVAL
ALTSEQ
DESCEND
FCFO
FIFO
LIFO
NOALTSEQ
SIGNED
UNIQUE
VARLEN
ZONE
 
0

Featured Post

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

697 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question