|
From: | Brian Tiffin |
Subject: | Re: [open-cobol-list] File references in MSWin |
Date: | Thu, 28 Feb 2013 15:24:31 -0500 |
User-agent: | Opera Mail/12.14 (Linux) |
I understand and use Linux file reference conventions when referring to a file in an OC program, e.g.: SELECT INFILE ASSIGN TO "../filedir/mainfile.fil". What would be the corresponding reference in a MSWin based COBOL program? I assume that the directory "filedir" is parallel to the directory containing the COBOL source code.
John. Windows uses the same two dots to specify "up" relative directories as POSIX, and you can use native Windows naming for ASSIGN.
Input-Output Section. File-Control. Select InFile Assign to "C:\expon180.1e6". Select OutFile Assign to "C:\TELCO.TXT" Line Sequential.Also as stated in the other response, things like backslash versus slash are usually handled at a lower level, with auto conversions that usually work. At least from POSIX name to Windows names. Windows names that include drive spec, backslash or device names are usually just rejected as bad names in GNU/Linux. POSIX doesn't seem overly concerned with Windows compatibility. Windows IS under some pressure to support POSIX though, at least from programmers. OpenCOBOL does handle some of the name consolidation, but most times it is up to the developer to keep things straight.
Cheers, Brian
-- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: "Create Book Covers with Scribus" available at http://www.booklocker.com/books/4055.html ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ open-cobol-list mailing list address@hidden https://lists.sourceforge.net/lists/listinfo/open-cobol-list
[Prev in Thread] | Current Thread | [Next in Thread] |