IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

call a program with it's copybook


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
niharika1234

New User


Joined: 01 May 2006
Posts: 9

PostPosted: Tue Dec 19, 2006 4:47 pm
Reply with quote

Hi All,

How to call a program with it's copybook in cobol-cics program? What should be the command for this?

Thanks
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Dec 19, 2006 5:19 pm
Reply with quote

I'm sorry, your question is not clear to me, could you expand on it?
Back to top
View user's profile Send private message
ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Wed Dec 20, 2006 3:50 pm
Reply with quote

hi niharika u can use

call [pgm-name] using dfhcommarea data-area (this shud be the highest level defined in the copybook or what all u want to pass to the called pgm ) ....


for eg ur copybook is

03 data-area.
05 name
05 empno

call pgm using dfhcommarea data-area
Back to top
View user's profile Send private message
ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Wed Dec 20, 2006 3:52 pm
Reply with quote

use DFHEIBLK instead of DFHCOMMAREA ..sorry for the mistake
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top