Code Comments
Programming Forum and web based access to our favorite programming groups.I will need to transfer a number of mainframe cobol programs to a windows environment (fujitsu cobol.net), and write a vb.net control program to call them. The cobol programs are called repeatedly for different files: the cobol programs don't care, as they access the files using "select input-file assign to infile" where infile (on the mainframe) is a DDNAME and the physical filename is a DSNNAME. Under Micro-focus I could do this by setting an environment variable setting DDNAME=DSNNAME and it works fine. Is is possible to do the same here - i.e. have the VB.NET set environment variables and the cobol program will use to get the physical filename? Is there another option? I noticed the post [url]http://groups-beta.google.com/group/comp.lang.cobol/browse_thread/thread/fa58209d2 3c06409/c0696c17c6069cd9?q=FILENAME+FUJITSU+COBOL+SELECT&rnum=12#c0696c17c6069cd9[ /url] that suggests this will work - but will I always be bothered by the window popping up the post is asking about - or is is smart enough not to open the window if it has all the environment variables it needs? Unfortunately at the moment I don't yet have Fujistu so its hard for me to make tests at the moment. Thanks,
Post Follow-up to this messageYou can assign files to environment variables in the Fujitsu environment. But a better way is to use the external Cobol85.cbr file which controls the environment and also prevents the popups you mentioned. The external 'environment file' has all the options you could want and can be maintained with any text editor. You could easily write this file from VB if you wanted to... The manuals document the full use of the environment file. It is comprehensive. Just use what you need; NONE of it is mandatory. Pete. TOP POST no more. "ari" <unikoski@yahoo.com> wrote in message news:1112031566.887938.40380@o13g2000cwo.googlegroups.com... > I will need to transfer a number of mainframe cobol programs to a > windows environment (fujitsu cobol.net), and write a vb.net control > program to call them. > > The cobol programs are called repeatedly for different files: the cobol > programs don't care, as they access the files using > > "select input-file assign to infile" > > where infile (on the mainframe) is a DDNAME and the physical filename > is a DSNNAME. > > Under Micro-focus I could do this by setting an environment variable > setting DDNAME=DSNNAME and it works fine. > > Is is possible to do the same here - i.e. have the VB.NET set > environment variables and the cobol program will use to get the > physical filename? Is there another option? > > I noticed the post > > http://groups-beta.google.com/group...0696c17c6069cd9 > > > that suggests this will work - but will I always be bothered by the > window popping up the post is asking about - or is is smart enough not > to open the window if it has all the environment variables it needs? > > Unfortunately at the moment I don't yet have Fujistu so its hard for me > to make tests at the moment. > > Thanks, > >
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.