Solved

Use of "TRIM" in DDS Logical File declaration

Posted on 2008-10-01
1
740 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Marketing can be an uncomfortable undertaking, especially if your material is technology based. Luckily, we’ve compiled some simple and (relatively) painless tips to put an end to your trepidation and start your path to success.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now