?
Solved

Use of "TRIM" in DDS Logical File declaration

Posted on 2008-10-01
1
Medium Priority
?
786 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
1 Comment
 
LVL 27

Accepted Solution

by:
tliotta earned 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
New style of hardware planning for Microsoft Exchange server.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

765 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