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

Passing strings in the program


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Siddharth Bahirsheth

New User


Joined: 23 Jul 2007
Posts: 16
Location: Mumbai

PostPosted: Mon Jul 23, 2007 5:15 pm
Reply with quote

Can any body suggest me how will i pass a string in different programs through comm area .. help in the form of theory or code snippet would be appreciated
Back to top
View user's profile Send private message
William Thompson

Global Moderator


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

PostPosted: Mon Jul 23, 2007 5:22 pm
Reply with quote

OK, please define "string".......
Back to top
View user's profile Send private message
Siddharth Bahirsheth

New User


Joined: 23 Jul 2007
Posts: 16
Location: Mumbai

PostPosted: Mon Jul 23, 2007 5:26 pm
Reply with quote

string means any string of characters for e.g 01 var-name pic x(20)
Back to top
View user's profile Send private message
William Thompson

Global Moderator


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

PostPosted: Mon Jul 23, 2007 5:36 pm
Reply with quote

Move your "var-name pic x(20)" to the commarea and go.....
Back to top
View user's profile Send private message
Siddharth Bahirsheth

New User


Joined: 23 Jul 2007
Posts: 16
Location: Mumbai

PostPosted: Mon Jul 23, 2007 6:18 pm
Reply with quote

can you please provide me with some code snippet of called and calling program
Back to top
View user's profile Send private message
William Thompson

Global Moderator


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

PostPosted: Mon Jul 23, 2007 6:22 pm
Reply with quote

Batch or CICS?
Back to top
View user's profile Send private message
Siddharth Bahirsheth

New User


Joined: 23 Jul 2007
Posts: 16
Location: Mumbai

PostPosted: Mon Jul 23, 2007 6:34 pm
Reply with quote

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

Global Moderator


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

PostPosted: Mon Jul 23, 2007 6:40 pm
Reply with quote

Try looking first at the Calling subprograms from COBOL section in the Programming Guide.
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 -> COBOL Programming

 


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 Passing Parameters to Programs Invoke... PL/I & Assembler 5
Search our Forums:

Back to Top