Home > Archive > Cobol > March 2005 > vb.net and cobol.net - passing filenames
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
vb.net and cobol.net - passing filenames
|
|
|
| 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,
| |
| Pete Dashwood 2005-03-29, 8:55 am |
| You 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,
>
>
|
|
|
|
|