One can create an LF over a flat file; even easier if the record contains only a single field. Or are you saying that the DSPFFD indicates a single field, such as F00001?
In the latter case it is more convoluted but still doable. You would need to use the SST keyword to substring the F00001 field into its components and then build the key(s).
Jerry C. Adams
IBM System i Programmer/Analyst
--
B&W Wholesale
office: 615-995-7024
email: jerry@xxxxxxxxxxxxxxx
Well, there was the Battle of the Bulge. -Warren Spahn when asked if he had ever felt more pressure than pitching in the World Series
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Gangasani, Bhargava
Sent: Thursday, May 27, 2010 9:56 AM
To: Midrange Systems Technical Discussion
Subject: RE: READ PREVOIUS in CLP
I can not create a LF for this, Unnecessary overhead. More over, it is a Flat file consists of single field.
I am validating the trailer record.. TLR012536
Where - 012536 no of record in the file except HDR and TLR
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Musselman, Paul
Sent: Thursday, May 27, 2010 8:14 PM
To: Midrange Systems Technical Discussion
Subject: RE: READ PREVOIUS in CLP
Can you create a new LF (Logical File) that contains -just- trailer records? Once you read a 'header' record, read the new LF looking for a trailer with a matching transaction number...
What do you do when you find the trailer record?
Paul E Musselman
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
2009 Winner: Broadridge receives ?Top Overall Honors" for 2 consecutive years in the Black Book of Outsourcing Brokerage Process Service Provider Survey. Learn more at
http://www.broadridge.com/ranked1/
?THANK GOD IT?S MONDAY!? Sounds interesting? Know more @ www.broadridge.com.
This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system.
As an Amazon Associate we earn from qualifying purchases.