gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] use environment-variable for filename


From: John R. Culleton
Subject: Re: [open-cobol-list] use environment-variable for filename
Date: Mon Aug 15 08:20:39 2005
User-agent: KMail/1.7.2

On Monday 15 August 2005 02:07 pm, Franklin Ankum wrote:
> Hello Leon,
>
> > Allthough I browsed thru previous postings I could not find any reference
> > to my (very) simple question: how do I access (unix)-files in a
> > Cobol-programm ?
> >
> > I'm currently working on a mainframe-to-Linux conversion which also
> > includes about 20 cobol-programms. For this I installed Opencobol on
> > Linux and Z/Linux.
> >
> > When I run a mainframe-program that only opens a file I get error:
> > libcob: Permanent file error (STATUS=30)
> >
> > Is it possible to use an environment-variable for filename insteed of a
> > fixed filename ?
>
> compile your program with cobc -std=ibm yoursource.cbl
> now "export WF001=/tmp/f001" and run your program again
>
> Regards Franklin

What are the changes caused by using  "-std=ibm"? 
-- 
John Culleton




reply via email to

[Prev in Thread] Current Thread [Next in Thread]