Skip to main content

[Migrated content. Thread originally posted on 29 August 2011]

Hi

Need small help . I am trying to run cobol program which is writing some data in output file.

Cobol Program : SELECT FILENAME ASSIGN TO DDNAME

IN jcl

DDNAME DD DSN=TEST.JCL.OUT1

and the file TEST.JCL.OUT1 is also cataloged where it is mapped to c:\\myfile.dat.

When i submit this jcl it make a file with name DDNAME and the file name "TEST.JCL.OUT1" is empty.
Important points :
a) When i see spool TEST.JCL.OUT1 is getting mapped to c:\\myfile.dat.
b) I am not using any compiler directive that means it is using "MF" and so to supply the file ouput name i have given assign"external".
c) I can not use any other compiler directive as i am using ANY LENGTH COBOL VERB which is allowed only in "mf" directive.

any workarounds....


#EnterpriseDeveloper

[Migrated content. Thread originally posted on 29 August 2011]

Hi

Need small help . I am trying to run cobol program which is writing some data in output file.

Cobol Program : SELECT FILENAME ASSIGN TO DDNAME

IN jcl

DDNAME DD DSN=TEST.JCL.OUT1

and the file TEST.JCL.OUT1 is also cataloged where it is mapped to c:\\myfile.dat.

When i submit this jcl it make a file with name DDNAME and the file name "TEST.JCL.OUT1" is empty.
Important points :
a) When i see spool TEST.JCL.OUT1 is getting mapped to c:\\myfile.dat.
b) I am not using any compiler directive that means it is using "MF" and so to supply the file ouput name i have given assign"external".
c) I can not use any other compiler directive as i am using ANY LENGTH COBOL VERB which is allowed only in "mf" directive.

any workarounds....


#EnterpriseDeveloper
I am not familiar with associating DD names with files on a c drive on your machine. I was a COBOL programmer for over 20 years, but I am just learning visual COBOL. JCL generally references files on a mainframe, and I don't know of a way to reference files on user machine. As far as I know, MicroFocus does not provide its own version of JCL. Also, when referencing a catalogued data set, you need to say 'DISP=OLD' in the JCL. Generally, you should only use JCL with legacy systems where the files are already on the mainframe.

[Migrated content. Thread originally posted on 29 August 2011]

Hi

Need small help . I am trying to run cobol program which is writing some data in output file.

Cobol Program : SELECT FILENAME ASSIGN TO DDNAME

IN jcl

DDNAME DD DSN=TEST.JCL.OUT1

and the file TEST.JCL.OUT1 is also cataloged where it is mapped to c:\\myfile.dat.

When i submit this jcl it make a file with name DDNAME and the file name "TEST.JCL.OUT1" is empty.
Important points :
a) When i see spool TEST.JCL.OUT1 is getting mapped to c:\\myfile.dat.
b) I am not using any compiler directive that means it is using "MF" and so to supply the file ouput name i have given assign"external".
c) I can not use any other compiler directive as i am using ANY LENGTH COBOL VERB which is allowed only in "mf" directive.

any workarounds....


#EnterpriseDeveloper
phikio originally wrote:
I am not familiar with associating DD names with files on a c drive on your machine. I was a COBOL programmer for over 20 years, but I am just learning visual COBOL. JCL generally references files on a mainframe, and I don't know of a way to reference files on user machine. As far as I know, MicroFocus does not provide its own version of JCL. Also, when referencing a catalogued data set, you need to say 'DISP=OLD' in the JCL. Generally, you should only use JCL with legacy systems where the files are already on the mainframe.


Thanks for reply !! but i tried this... its not working .. need some body from micro focus side

[Migrated content. Thread originally posted on 29 August 2011]

Hi

Need small help . I am trying to run cobol program which is writing some data in output file.

Cobol Program : SELECT FILENAME ASSIGN TO DDNAME

IN jcl

DDNAME DD DSN=TEST.JCL.OUT1

and the file TEST.JCL.OUT1 is also cataloged where it is mapped to c:\\myfile.dat.

When i submit this jcl it make a file with name DDNAME and the file name "TEST.JCL.OUT1" is empty.
Important points :
a) When i see spool TEST.JCL.OUT1 is getting mapped to c:\\myfile.dat.
b) I am not using any compiler directive that means it is using "MF" and so to supply the file ouput name i have given assign"external".
c) I can not use any other compiler directive as i am using ANY LENGTH COBOL VERB which is allowed only in "mf" directive.

any workarounds....


#EnterpriseDeveloper
Take a look at the JCL Tutorial included in the documentation which should answer all the questions you have below.

The source files for the JCL tutorial are located in your 'C:\\Program Files (x86)\\Micro Focus\\Studio Enterprise Edition 6.0\\Examples\\Visual Studio Integration\\Mainframe\\JCL' directory assuming you took the default installation values.