× 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.



To add to my previous post - I think it's a good idea to get used to using qualified structures.

On 10/2/2014 8:49 AM, Brian Stapleton wrote:
Good Morning Team

Need some Syntax help here please.

This is what I have


Dcl-DS DS01_RC40C0;
D01_Retn Char(001);
D01_Optn Char(002);
D01_Astp Char(001);
D01_Asn Char(020);
D01_TxParm Char(050);
END-DS;


**********************************************************************
C *Entry Plist
C Parm DS01_RC40C0



And I would like to replace the *Entry PLIST with the DCL-PR/DCL-PI, but I am confused with the Syntax since the Parm for the *Entry is a Data Structure.


So I did this:

Dcl-DS DS01_RC40C0;
D01_Retn Char(001);
D01_Optn Char(002);
D01_Astp Char(001);
D01_Asn Char(020);
D01_TxParm Char(050);
END-DS;

// --------------------------------------------------
// Prototype for procedure: Main
// --------------------------------------------------
DCL-PR Main EXTPGM('RC40C0RP');
Arriving_Parms_DS LIKEDS(DS01_RC40C0);
END-PR ;

DCL-PI Main;
Arriving_Parms_DS LIKEDS(DS01_RC40C0);
END-PI ;

**********************************************************************
C* *Entry Plist
C* Parm DS01_RC40C0


And it works, except that now to access the arriving parms, I need to do this Arriving_Parms_DS.D01_Optn, instead of just doing a D01_Optn. (the arriving parms are like a qualified ds)

Is there any way that I can accept an arriving DS, using the DCL-PR/DCL-PI and access the fields of the DS individually without having to access the fields as a qualified data structure?




Brian Stapleton
Information Services
Carhartt, Inc
5750 Mercury Drive
Dearborn, MI 48126
Desk - 313-749-6586
Fax - 313-271-3455
BStapleton@xxxxxxxxxxxx<mailto:BStapleton@xxxxxxxxxxxx>

[Description: Description: Carhartt_emaillogo]


Confidential: This electronic message and all contents contain information from Carhartt, Inc. and its affiliates which may be confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify us immediately at (313) 271-8460 and destroy the original message and all copies.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.