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



my problem is:
Iam having flat file DAACDTRN   (input)
Iam having outfile  DAACDTRNO(output)
Iam using FMTDTA      INFILE(LIB/DAACDTRN)MBR(DAACDTRN)
                                  OUTFILE(LIB/DAACDTRNO)MBR(DAACDTRNO) 
                                  SRCFILE(LIB/QFMTSRC) MBR(DASORT50).
 Iam getting following error when iam executing this command on command
line.


 0 error(s) found in source file QFMTSRC in library NFHPGMR mbr DASORT50,but
still iam nt getting data into outfile.
i went to file description of  DAACDTRN and saw the following info***
 Total number of members  . . . . . . . . . :                 1    
 Total number of members not available  . . :                 0    
 Total records  . . . . . . . . . . . . . . :             39081    
 Total deleted records  . . . . . . . . . . :                 0    
 Total of member sizes  . . . . . . . . . . :          18190336    
-----------------------------------------------------------
i went to file description of DAACDTRNO and swa the following info***
 Total number of members  . . . . . . . . . :                 1   
 Total number of members not available  . . :                 0   
 Total records  . . . . . . . . . . . . . . :             29997   
 Total deleted records  . . . . . . . . . . :                 0   
 Total of member sizes  . . . . . . . . . . :          14721024   
                                                                  
so i came to conclusison that i need to change the length of the DAACDTRNO
for format data operation to be successful..how do i change ...please
provide me specific command and please explain how do i solve this so that i
get the requested records into my outfile without error
adv thanks&regards,
Murali


> -----Original Message-----
> From: Richard B Baird [SMTP:rbaird@esourceconsulting.com]
> Sent: Thursday, January 02, 2003 6:35 PM
> To:   rpg400-l@midrange.com
> Subject:      Re: using FMTSRC
> 
> 
> Murali,
> 
> start here:
> http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/QBKAQ100/CCONTENTS?SHE
> LF=QB3AYC05&DN=SC09-1826-00&DT=19940606151250
> 
> store your sourse specs in a source pf called QFMTSRC (or anything).
> 
> a simple example:
> 
>      HFILE     16A         X
>      I C  15  16EQC10
>      IOC  15  16EQC20
>      FNC   1  16
>      FDC   1 122
> 
> The above basically says:
> 
> from your input file, create a new file, 122 in length.
> include in this file only records from the input file that contain a 10 or
> a 20 in positions 15-16.
> sort the file by positions 1 - 16 of the inputfile, and place in the
> output
> file positions 1 - 122.
> 
> the specifications are fixed formatted, much like DDS and RPG.  Check the
> ibm documentation for each spec type, position and meaning, but in brief:
> 
> the 'H' spec describes the job, and the size of the sort fields.
> 
> the 'I' spec specifies which records to include.
> 
> the 'F' specs describe fields to sort by, and to include in the output.
> 
> hope this helps,
> 
> rick
> ---original message--------
> Iam new to this flat file concept...can any body tell me how to write
> sort/select  conditions...Iam sorting data (iam nt using opnqryf)by using
> FMTDTA and how to write sort conditions in the flat file   for that?how do
> i
> use this in CL pgm?
> 
> Regards,
> Murali
> 
> _______________________________________________
> 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/cgi-bin/listinfo/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.
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.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.