Skip to main content

Hi,

I am trying to compile to 64 bit mode using directive(P64) on 32 bit machine using Micro focus Net Express 5.1 from the command line. While compiling I am facing the error "06-R Read failure on input file. Not intermediate code or wrong version".

Can anyone help with this issue or tell what might be problem, please?

Command used to compile - COBOL c:\\sample\\pgm1.cbl /DIRECTIVES"C:\\sample\\COBOL.DIR"

FYI -

C:\\Users\\username\\Documents\\Micro Focus\\Net Express 5.1\\WORKAREA>COBOL c
:\\sample\\pgm1.cbl /DIRECTIVES"C:\\sample\\COBOL.DIR"
Micro Focus Net Express V5
Version 5.104.0083 Copyright (C) 1984-2009 Micro Focus (IP) Limited.
URN AXCGG/AA0/00000
Object file-name [PGM1.GNT]:
Source listing   [C:\\SAMPLE\\PGM1.LST]:
Object listing   [NUL]:
* Accepted - GNT(.\\)
* Accepted - OBJ(.\\)
* Accepted - DIRECTIVES"C:\\Sample\\COBOL.DIR"
* Accepted - APOST
* Accepted - P64
* Compiling c:\\sample\\pgm1.cbl
* Checking complete with no errors - starting code generation
* 006-R Read failure on input file. Not intermediate code or wrong version

Thanks,

Prakash


#64bitcompilationissue

Hi,

I am trying to compile to 64 bit mode using directive(P64) on 32 bit machine using Micro focus Net Express 5.1 from the command line. While compiling I am facing the error "06-R Read failure on input file. Not intermediate code or wrong version".

Can anyone help with this issue or tell what might be problem, please?

Command used to compile - COBOL c:\\sample\\pgm1.cbl /DIRECTIVES"C:\\sample\\COBOL.DIR"

FYI -

C:\\Users\\username\\Documents\\Micro Focus\\Net Express 5.1\\WORKAREA>COBOL c
:\\sample\\pgm1.cbl /DIRECTIVES"C:\\sample\\COBOL.DIR"
Micro Focus Net Express V5
Version 5.104.0083 Copyright (C) 1984-2009 Micro Focus (IP) Limited.
URN AXCGG/AA0/00000
Object file-name [PGM1.GNT]:
Source listing   [C:\\SAMPLE\\PGM1.LST]:
Object listing   [NUL]:
* Accepted - GNT(.\\)
* Accepted - OBJ(.\\)
* Accepted - DIRECTIVES"C:\\Sample\\COBOL.DIR"
* Accepted - APOST
* Accepted - P64
* Compiling c:\\sample\\pgm1.cbl
* Checking complete with no errors - starting code generation
* 006-R Read failure on input file. Not intermediate code or wrong version

Thanks,

Prakash


#64bitcompilationissue

Hi Prakash, you'll need to use a 64bit machine to create a 64bit executable.


Hi,

I am trying to compile to 64 bit mode using directive(P64) on 32 bit machine using Micro focus Net Express 5.1 from the command line. While compiling I am facing the error "06-R Read failure on input file. Not intermediate code or wrong version".

Can anyone help with this issue or tell what might be problem, please?

Command used to compile - COBOL c:\\sample\\pgm1.cbl /DIRECTIVES"C:\\sample\\COBOL.DIR"

FYI -

C:\\Users\\username\\Documents\\Micro Focus\\Net Express 5.1\\WORKAREA>COBOL c
:\\sample\\pgm1.cbl /DIRECTIVES"C:\\sample\\COBOL.DIR"
Micro Focus Net Express V5
Version 5.104.0083 Copyright (C) 1984-2009 Micro Focus (IP) Limited.
URN AXCGG/AA0/00000
Object file-name [PGM1.GNT]:
Source listing   [C:\\SAMPLE\\PGM1.LST]:
Object listing   [NUL]:
* Accepted - GNT(.\\)
* Accepted - OBJ(.\\)
* Accepted - DIRECTIVES"C:\\Sample\\COBOL.DIR"
* Accepted - APOST
* Accepted - P64
* Compiling c:\\sample\\pgm1.cbl
* Checking complete with no errors - starting code generation
* 006-R Read failure on input file. Not intermediate code or wrong version

Thanks,

Prakash


#64bitcompilationissue

Hi Scot,

I work with Prakash and I am on a 64bit machine, but I'm still getting the same error. I've verified my command prompt is being executed from the c:\\windows\\SysWOW64 folder. When I check the task manager processes, is shows 'cmd.exe *32'.


Hi,

I am trying to compile to 64 bit mode using directive(P64) on 32 bit machine using Micro focus Net Express 5.1 from the command line. While compiling I am facing the error "06-R Read failure on input file. Not intermediate code or wrong version".

Can anyone help with this issue or tell what might be problem, please?

Command used to compile - COBOL c:\\sample\\pgm1.cbl /DIRECTIVES"C:\\sample\\COBOL.DIR"

FYI -

C:\\Users\\username\\Documents\\Micro Focus\\Net Express 5.1\\WORKAREA>COBOL c
:\\sample\\pgm1.cbl /DIRECTIVES"C:\\sample\\COBOL.DIR"
Micro Focus Net Express V5
Version 5.104.0083 Copyright (C) 1984-2009 Micro Focus (IP) Limited.
URN AXCGG/AA0/00000
Object file-name [PGM1.GNT]:
Source listing   [C:\\SAMPLE\\PGM1.LST]:
Object listing   [NUL]:
* Accepted - GNT(.\\)
* Accepted - OBJ(.\\)
* Accepted - DIRECTIVES"C:\\Sample\\COBOL.DIR"
* Accepted - APOST
* Accepted - P64
* Compiling c:\\sample\\pgm1.cbl
* Checking complete with no errors - starting code generation
* 006-R Read failure on input file. Not intermediate code or wrong version

Thanks,

Prakash


#64bitcompilationissue

This is a 32-bit command prompt that you are using.

On a 64-bit computer you should have a Net Express 64-bit command prompt available to you under Start Menu-->All Programs-->Micro Focus Net Express 5.1.

If you compile using this Net Express command prompt instead of a regular System Command Prompt then the Net Express environment will be setup to use 64-bit.

Please try using this Net Express 64-bit command prompt and let me know what happens.

Thanks.


Hi,

I am trying to compile to 64 bit mode using directive(P64) on 32 bit machine using Micro focus Net Express 5.1 from the command line. While compiling I am facing the error "06-R Read failure on input file. Not intermediate code or wrong version".

Can anyone help with this issue or tell what might be problem, please?

Command used to compile - COBOL c:\\sample\\pgm1.cbl /DIRECTIVES"C:\\sample\\COBOL.DIR"

FYI -

C:\\Users\\username\\Documents\\Micro Focus\\Net Express 5.1\\WORKAREA>COBOL c
:\\sample\\pgm1.cbl /DIRECTIVES"C:\\sample\\COBOL.DIR"
Micro Focus Net Express V5
Version 5.104.0083 Copyright (C) 1984-2009 Micro Focus (IP) Limited.
URN AXCGG/AA0/00000
Object file-name [PGM1.GNT]:
Source listing   [C:\\SAMPLE\\PGM1.LST]:
Object listing   [NUL]:
* Accepted - GNT(.\\)
* Accepted - OBJ(.\\)
* Accepted - DIRECTIVES"C:\\Sample\\COBOL.DIR"
* Accepted - APOST
* Accepted - P64
* Compiling c:\\sample\\pgm1.cbl
* Checking complete with no errors - starting code generation
* 006-R Read failure on input file. Not intermediate code or wrong version

Thanks,

Prakash


#64bitcompilationissue

OK, it looks like that did it. So the main thing is to be pointing to "c:\\Program Files (x86)|micro Focus\\Net Express 5.1\\Base\\BIN\\WIN64". Our existing scripts where only adding the \\Base\\BIN.