View Full Version : Ovrdbf file(stdin)
11-12-2009, 12:04 PM
According to the REXX Reference manual, STDIN can be redirected to a database physical file or to a named inline spooled file. (Page 143 of my copy, SC41-5729-00.)
I want to work with a file that is NOT a database physical file-- it is in the IFS.
I guess this is a multi-part question:
a) What is, and how do I create, a "named inline spooled file"?
b) Prompting the OVRDBF command doesn't seem to allow anything but a database physical file... how is the "named inline spooled file" supposed to be referenced?
11-12-2009, 06:08 PM
I have never used inline files with REXX but the default name is QINLINE. So far as definition goes, prompt the DATA command. Some additional reading material can be found at http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzaks/rzaksidfoc.htm and http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzaks/rzaksinldf.htm.
11-12-2009, 08:07 PM
DATA appears to also be for a database file, but thanks for the reply.
I just need to read a file in the IFS from REXX. Maybe I can figure out how to load the REXX External Data Que with my file... any ideas on that? (Samples are really, really hard to find!)
11-16-2009, 04:50 PM
Since you only want to read the IFS data...A possible scenario for your CL program that performs the OVRDBF command could go like this: You would need to CPYFRMSTMF from the IFS data file, to a database file and member. Then run the OVRDBF command to point STDIN to that file. Then run the REXX procedure.
Seems a little un-streamlined for the "i" can do anything machine. I'm sure there's an un-heralded IFS slash REXX guru that knows an easier way. Good Luck!
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.