Creating DCLGEN

How to create a DCLGEN using TSO? How do we include it in Cobol-db2 program?

Questions by sandyko07

Showing Answers 1 - 3 of 3 Answers

ahobalanag

  • Aug 25th, 2012
 

You can run a job like this:-
//DCLGEN EXEC PGM=IKJEFT1B
//SYSTSIN DD *
DSN SYSTEM()
DCLGEN TABLE() +
LIBRARY ()) +
ACTION(ADD) APOST +
LANGUAGE(IBMCOB)
END

You will have to allocate other appropriate libraries before running this JCL.

To include the DCLGEN in your COBOL program, you can say:-

EXEC SQL
INCLUDE
END-EXEC.

Make sure you have the library where you created this DCLGEN concatenated to DDNAME SYSLIB on your precompile job.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions