GeekInterview.com
Series: Subject:
Question: 37 of 105

Creating DCLGEN

How to create a DCLGEN using TSO? How do we include it in Cobol-db2 program?
Asked by: sandyko07 | Member Since Feb-2009 | Asked on: Feb 11th, 2009

View all questions by sandyko07

Showing Answers 1 - 1 of 1 Answers
ahobalanag

Answered On : Aug 25th, 2012

View all answers by ahobalanag

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.

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.