Solved

Use of "TRIM" in DDS Logical File declaration

Posted on 2008-10-01
1
758 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
1 Comment
 
LVL 27

Accepted Solution

by:
tliotta earned 500 total points
ID: 22620089
volking:

No one else has responded, so I'll do what I can. If I'm wrong, someone's bound to catch it and we'll both learn something.

The answer seems to be "You can't." If I were doing this, I'd probably create a SQL VIEW with a DDL statement rather than try to get it done with DDS.

However, it might help if you describe the business use for this. Usually, the reason for going with DDS would be to support a compiled language such as COBOL, RPG, C, etc., where native I/O was a requirement. But those languages already supply functionality for substrings, left-adjusting, trimming, under more precise control.

Can you provide the environment within which this field definition is needed?

Tom
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Routing remote iSeries IP printing through a VPN tunnel 4 445
Install CPIO 1 171
RPG to c# 3 363
Calling an iSeries system API (QWDRSBSD) from C# 4 479
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

803 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