[B]Question asked by visitor marqux[/b]
Can I allocate and define DD in JCL from a Cobol program? This a problem i have. i need to alloc a sequence file but the name is defnied in other file.
thank a lot
Printable View
[B]Question asked by visitor marqux[/b]
Can I allocate and define DD in JCL from a Cobol program? This a problem i have. i need to alloc a sequence file but the name is defnied in other file.
thank a lot
Can you be more specific?
It sounds like another program is creating a file and your program is try to read it. In that case you set up an arbitrary dd name in the file section of your program.
Later, when you set up the JCL to call your program, refer to you ddname and code the dsn name of the file created in the earlier program.
If I didn't interpret your question correctly, please let me know.
kk