× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: Another V5R1 query... Qualified DSs
  • From: "Stone, Brad V (TC)" <bvstone@xxxxxxxxxxxxxx>
  • Date: Thu, 10 May 2001 07:27:39 -0500

> Brad, PREFIX('DSNAME.') is only allowed on F specs.  (You
> can use a character literal with D spec PREFIX now, but it
> can't end with a dot.)  Also, you can specify QUALIFIED on
> a program-described data structure, but you can't specify
> PREFIX.

Yep, this I get.  But lets assume you can....

> 
> But assuming that qualification _could_ be specified through
> PREFIX, you might get strange coding like this:
> 
> D someDS         DS        PREFIX('DS2.')
> D   sub1               1a
> 
> With true qualification, the subfield should be someDS.sub1,
> but with the prefix kludge, the subfield would be DS2.sub1.
> Sure, the compiler could give an error if they didn't match,
> but ... ewwwww.

ewwww?  Well, either I mistyped my example or it's been changed.

D someDS         DS        PREFIX('someDS.')
D   sub1               1a

and

D someDS         DS        QUALIFIED
D   sub1               1a

would both produce the subfield someDS.sub1.  Correct?  (assuming that you
could prefix a program defined ds and it could end in a dot)

Is this still ewwww, or the same thing?  :)

Brad

> 
> Barbara Morris
> 
> 
> +---
> | This is the RPG/400 Mailing List!
> | To submit a new message, send your mail to RPG400-L@midrange.com.
> | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to 
> RPG400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator: 
> david@midrange.com
> +---
> 
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.