Creating logical file keyed by partial field.

0 pts.
Tags:
RPG
We have a need to create a logical file based on a substring of a particular field as opposed to the entire field. I know it can be done using 'CREATE VIEW' within SQL. Is there a way to do it within DDS specs? I appreciate your help!
ASKED: October 15, 2004  8:54 AM
UPDATED: October 15, 2004  9:54 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

The SUBSTRING IN DDS is SST and it is used like this:
USR1 SST(USRCM 1 1)
USRCM
and, along with substring, you can also use CONCATENATE:
CMDATE CONCAT(YRCCM MNCCM DYCCM)
YRCCM
MNCCM
DYCCM
Both of these resulting fields are available for use as the key fields in logical files. Hope this answers it for you. these

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Dantheband
    Use the SST keyword in DDS. Duh! Thank you very much LFiato!!!
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following