D Spec on DS in AS/400

765 pts.
Tags:
AS/400
AS/400 database administration
AS400 Data Definitions
When do you use the DS on your D Spec instead of just S

Answer Wiki

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

The DS defines a Data Structure.
The S defines a single field.
A Data Structure is a group of fields.
Here is a sample:
*
d inRecordDS ds
d inData 94a
d inkey 39a
d recType 1a overlay(inData:1)
*
In my code, I can reference inRecordDS which will be 133 characters long
Or I can reference InData which will be just the first 94 characters
Or I can reference recType which will be just the 1st position of inData

Discuss This Question: 2  Replies

 
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
  • Jaymz69
    Thanks
    765 pointsBadges:
    report
  • Jaymz69
    [...] CharlieBrowne gave some pointers on when to use the D Spec on DS in AS/400. 6. WoodEngineer and CharlieBrowne gave some code suggestions for finding a string in AS/400 [...]
    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