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



You've got the data structure following a file spec, then another file spec.

All RPG specifications must appear together (they cannot be mixed up) and in
this order in your source member:

     H
     F
     D
     I
     C
     O
     P... B
     D..
     C..
     P... E
**CTDATA


-----Original Message-----
From: rpg400-l-bounces@midrange.com [mailto:rpg400-l-bounces@midrange.com]
On Behalf Of N, Muralidhar
Sent: Tuesday, January 21, 2003 11:00 AM
To: 'RPG programming on the AS400 / iSeries'
Subject: EXTERNALLY DEFINED DATASTRUCTURE




> *************** Beginning of data **********************************
> fdaphyt00  if   e             disk                                  
> dphytEDS        e ds                  extname(daphyt00)             
> fDAACDTRNO1o    e             disk                                  
> c                   read      DAPHYT00R                             
> c                   movel     DAPHYT00R     phytEDS                 
> c                   movel     phytEDS       daacfld                 
> c                   write     daacdtrn1r                            
> c                   seton                                        lr 
> 
         
        DAPHYT00  is  a  PF &its record format is  DAPHYT00R


> Flat file:  DAACDTRNO1                                   
> FORMAT:DAACDTRN1R
> FIELD :  DAACFLD
        ---------------------------------------------
        Iam getting compile time errors while executing the above code...Can
some one help me how can i read and then write the data  from the DAPHYT00
to flat file    DAACDTRNO1................as per the requirment i ve to use
externally defined datastructure .............any changes in the above code
or do i need to use one more DS TO WRITE DATA FINALLY TO daacdtrno1...Kindly
help me,Reply asap...
        Thanks&Regards,
        Murali

WARNING: The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee.  Access to this message
by anyone else is unauthorised.  If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message in
error. Thank you. _______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or
change list options,
visit: http://lists.midrange.com/mailman/listinfo.cgi/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




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.