×
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.
This command won't work because it just runs all the records together.
CPYTOSTMF FROMMBR() TOSTMF() STMFOPT(*REPLACE) ENDLINFMT(*FIXED)
By "flat file", I mean an S/36 data file that is not externally-described.
My statement about CPYTOIMPF was from personal experience, in addition to the IBM docs. I gave up on that command years ago because it didn't support flat files. Times change, so I tried it again, and what did I find? On 7.1 it works! Thank you, thank you!
-----Original Message-----
From: John Yeung [mailto:gallium.arsenide@xxxxxxxxx]
Sent: Tuesday, January 10, 2017 9:51 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Re: PF to .TXT & Trailing Blanks
On Tue, Jan 10, 2017 at 10:08 PM, Justin Taylor <JUSTIN@xxxxxxxxxxxxx> wrote:
John Y. - CPYTOIMPF only works with externally-described tables. My command must also support flat files.
What do you mean by "flat file"? If you're talking about a PF that's created using plain old CRTPF with no DDS (which is what you described in your first post), you may be surprised to find out that it is still externally described.
Judging by your responses (not just to me), it sounds like you do a fair amount of reading but not a lot of trying. IBM's docs are pretty good, but it doesn't mean they're infallible; and even when they are correct, they can be misinterpreted.
John Y.
As an Amazon Associate we earn from qualifying purchases.