?
Solved

Use of "TRIM" in DDS Logical File declaration

Posted on 2008-10-01
2
Medium Priority
?
986 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:
Dave Ford earned 2000 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

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…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

770 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