MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how can i run db2+cobol program

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
sravanguttu
Beginner


Joined: 25 May 2003
Posts: 5
Topics: 3

PostPosted: Sun May 25, 2003 12:13 am    Post subject: how can i run db2+cobol program Reply with quote

i have written one cobol program+db2 program .how i can run this program.plz give me clear steps for this

thanku
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12373
Topics: 75
Location: San Jose

PostPosted: Sun May 25, 2003 9:34 am    Post subject: Reply with quote

Sravan,

You can run the program using IKJEFT01.The following JCl can be used to run your cobol Db2 program.


Code:

//STEP0100 EXEC PGM=IKJEFT01,DYNAMNBR=20         
//*                                             
//SYSPRINT DD  SYSOUT=*                         
//SYSOUT   DD  SYSOUT=*                         
//SYSTSPRT DD  SYSOUT=*     
//SYSTSIN  DD  *                             
   DSN SYSTEM(XXXX)                         
   RUN  PROGRAM(PGM NAME) PLAN(PLAN NAME) -   
        LIB('LOAD LIB NAME')
//*
//* input and output file definitions goes here
//*
//INPUT    DD  DSN=INPUT FILE,
//              DISP=SHR
//OUTPUT   DD  DSN=YOUR OUTPUT FILE,   
//             DISP=(NEW,CATLG,DELETE),                 
//             UNIT=SYSDA,                               
//             SPACE=(CYL,(X,Y),RLSE)


Here XXXX - is your DB2 Region name.

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group