Home > Archive > Cobol > December 2007 > Can I run Micro Focus COBOL /2 v1.2.29 from XP Pro "Cmd" Window ?
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 |
Can I run Micro Focus COBOL /2 v1.2.29 from XP Pro "Cmd" Window ?
|
|
|
| OK guys, it appears the original program was written using .. Micro Focus
COBOL/2 Version 1.2.29 L2.2 revision 003
QUESTION: Can I run any of the Micro Focus stuff on my XP Pro machine by
going to the DOS prompt via... Start | Run | Cmd ??
I copied the files from the old DOS 6.2 machine and put them on my XP Pro
machine... here are the directories/folders I have... (in the root directory
on C:)
PGM
...COPYBOOK (Copybook files here)
...FILES (.FIL and .IDX files here)
...PROGRAMS (.CBL, .GNT,
MF-COBOL
MF-RTE
Looking at the BAT file that seems to launch the application it appears the
the application runs under an old GUI program called HI-SCREEN Pro II. (Last
line below is a file named hs-beg.com and appears also in another folder
named HSPRO2. Maybe this is why it won't run on a Windows XP Pro machine...
the hs-beg.com program must be some sort of hi-res program for old DOS
machines.
I would have thought there there would have been some compiled .COM or .EXE
file that was the actualy Application... but looking at the startup BAT
below it seems they...
.... setup the data .FIL's..
.... then point to the Run Time Environment...
.... not sure what COBSW=-F does
.... then launch this HI-Screen Pro II application which somehow knows to run
the application
===== Startup Batch File:
REM ..Load External File Names
SET F1=c:\PGM\FILES\CONTROL.FIL
SET F2=c:\PGM\FILES\CONTDATA.FIL
SET F3=c:\PGM\FILES\AUDIT.FIL
SET F4=c:\PGM\FILES\ITEMMST.FIL
SET F5=c:\PGM\FILES\OWNERMST.FIL
SET F6=c:\PGM\FILES\PLOTMSTR.FIL
SET F7=c:\PGM\FILES\TRUSTBNK.FIL
SET F8=c:\PGM\FILES\INTERINF.FIL
SET F9=c:\PGM\FILES\NOTES01.FIL
SET FA=c:\PGM\FILES\SALESMAN.FIL
SET FB=c:\PGM\FILES\SMANSALE.FIL
SET COBDIR=c:\MF-RTE
SET LIB=\c:MF-RTE
SET DSDIR=c:\MF-RTE
SET COBSW=-F
CD \PGM\PROGRAMS
Echo launching hs-beg.com
hs-beg
===== End of Bach File
Thanks for any comments or suggestions.
| |
| Judson McClendon 2007-12-15, 6:55 pm |
| "Will" <Will@somewhere.com> wrote:
> OK guys, it appears the original program was written using .. Micro Focus COBOL/2 Version 1.2.29 L2.2 revision 003
>
> QUESTION: Can I run any of the Micro Focus stuff on my XP Pro machine by going to the DOS prompt via... Start | Run | Cmd ??
I have never had problems running the DOS versions of Micro Focus
COBOL under Windows 95, 98, 2K or XP. If you have problems with
cmd.exe, try command.exe, which is the specific WinXP DOS emulator.
In fact, I have found XP to be extremely DOS program friendly, better
even than the 9X versions. Vista appears to be DOS hostile, from what
I've heard.
--
Judson McClendon judmc@sunvaley0.com (remove zero)
Sun Valley Systems http://sunvaley.com
"For God so loved the world that He gave His only begotten Son, that
whoever believes in Him should not perish but have everlasting life."
| |
| William M. Klein 2007-12-15, 6:55 pm |
| I thought I asked this already, but in the directory
\PGM\PROGRAMS
what files do you have with their root being
hs-beg
If you have any ending with .GNT or .INT - those are probably what is being
"run"
You might want to try
forcedos hs-beg
as the way to start the application
--
Bill Klein
wmklein <at> ix.netcom.com
"Will" <Will@somewhere.com> wrote in message
news:4763e00d$0$4976$4c368faf@roadrunner
.com...
> OK guys, it appears the original program was written using .. Micro Focus
> COBOL/2 Version 1.2.29 L2.2 revision 003
>
> QUESTION: Can I run any of the Micro Focus stuff on my XP Pro machine by going
> to the DOS prompt via... Start | Run | Cmd ??
>
> I copied the files from the old DOS 6.2 machine and put them on my XP Pro
> machine... here are the directories/folders I have... (in the root directory
> on C:)
>
> PGM
> ..COPYBOOK (Copybook files here)
> ..FILES (.FIL and .IDX files here)
> ..PROGRAMS (.CBL, .GNT,
> MF-COBOL
> MF-RTE
>
> Looking at the BAT file that seems to launch the application it appears the
> the application runs under an old GUI program called HI-SCREEN Pro II. (Last
> line below is a file named hs-beg.com and appears also in another folder named
> HSPRO2. Maybe this is why it won't run on a Windows XP Pro machine... the
> hs-beg.com program must be some sort of hi-res program for old DOS machines.
>
> I would have thought there there would have been some compiled .COM or .EXE
> file that was the actualy Application... but looking at the startup BAT below
> it seems they...
> ... setup the data .FIL's..
> ... then point to the Run Time Environment...
> ... not sure what COBSW=-F does
> ... then launch this HI-Screen Pro II application which somehow knows to run
> the application
>
> ===== Startup Batch File:
> REM ..Load External File Names
> SET F1=c:\PGM\FILES\CONTROL.FIL
> SET F2=c:\PGM\FILES\CONTDATA.FIL
> SET F3=c:\PGM\FILES\AUDIT.FIL
> SET F4=c:\PGM\FILES\ITEMMST.FIL
> SET F5=c:\PGM\FILES\OWNERMST.FIL
> SET F6=c:\PGM\FILES\PLOTMSTR.FIL
> SET F7=c:\PGM\FILES\TRUSTBNK.FIL
> SET F8=c:\PGM\FILES\INTERINF.FIL
> SET F9=c:\PGM\FILES\NOTES01.FIL
> SET FA=c:\PGM\FILES\SALESMAN.FIL
> SET FB=c:\PGM\FILES\SMANSALE.FIL
> SET COBDIR=c:\MF-RTE
> SET LIB=\c:MF-RTE
> SET DSDIR=c:\MF-RTE
> SET COBSW=-F
> CD \PGM\PROGRAMS
> Echo launching hs-beg.com
> hs-beg
> ===== End of Bach File
>
> Thanks for any comments or suggestions.
>
>
>
| |
| Robert 2007-12-15, 6:55 pm |
| On Sat, 15 Dec 2007 09:09:28 -0500, "Will" <Will@somewhere.com> wrote:
>OK guys, it appears the original program was written using .. Micro Focus
>COBOL/2 Version 1.2.29 L2.2 revision 003
>
>QUESTION: Can I run any of the Micro Focus stuff on my XP Pro machine by
>going to the DOS prompt via... Start | Run | Cmd ??
Yes. Even better, you can create a shortcut that starts the program (and cmd). Do a right
click on hs-beg.com, select Send To, Desktop. If necessary, adjust the properties of the
shortcut it created.
>I copied the files from the old DOS 6.2 machine and put them on my XP Pro
>machine... here are the directories/folders I have... (in the root directory
>on C:)
>
>PGM
>..COPYBOOK (Copybook files here)
>..FILES (.FIL and .IDX files here)
>..PROGRAMS (.CBL, .GNT,
>MF-COBOL
>MF-RTE
You don't need source code (.cbl .cpy) at execution time. You do need RTE.
>Looking at the BAT file that seems to launch the application it appears the
>the application runs under an old GUI program called HI-SCREEN Pro II. (Last
>line below is a file named hs-beg.com and appears also in another folder
>named HSPRO2. Maybe this is why it won't run on a Windows XP Pro machine...
>the hs-beg.com program must be some sort of hi-res program for old DOS
>machines.
It was probably a graphical user interface (GUI) program for DOS. It started the
application.
>I would have thought there there would have been some compiled .COM or .EXE
>file that was the actualy Application... but looking at the startup BAT
>below it seems they...
>... setup the data .FIL's..
>... then point to the Run Time Environment...
>... not sure what COBSW=-F does
>... then launch this HI-Screen Pro II application which somehow knows to run
>the application
It appears your application was compiled to .gnt files. This is native machine language
like an .exe file, but in a proprietry Micro Focus format. It is loaded by the MF runtime,
usually called COBRUN, with the command COBRUN (your app name). HS Pro probably has a
configuration file containing that command. If it is not in a file, it may be compiled
into hs-beg.com.
The -F flag tells the MF runtime to bypass verifying that numeric fields contain numeric
data. It applies only when running interpreted 'intermediate' code, found in .int files,
not to native code found in .gnt files. It was set to speed up execution (speed up
interpreted code??). It is not significant here.
|
|
|
|
|