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

Length of Dfhcommarea


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

New User


Joined: 04 Oct 2005
Posts: 8
Location: pune

PostPosted: Tue Jul 22, 2008 9:03 pm
Reply with quote

Display 'Length of Dfhcommarea' Length of Dfhcommarea
I think this should display the length of dfhcommarea that it has received from some calling pgm. But when I try to display it it comes to be zero.
I even tried moving it to working storage variable and then display, but still length comes to be zero.

Is there any way to know the length of dfhcommarea and display it.
Please suggest
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Jul 22, 2008 9:13 pm
Reply with quote

EIBCALEN will contain the commarea length passed to the program. This length can be zero, depending on circumstances.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Jul 23, 2008 10:01 am
Reply with quote

Rupinder,

If your req is to check whether the length of the data passed is equal to the length of the DFHCOMMAREA declared in the linkage section then code as follows

Code:
IF EIBCALEN  NOT  =  LENGTH OF DFHCOMMAREA
Back to top
View user's profile Send private message
rupinder

New User


Joined: 04 Oct 2005
Posts: 8
Location: pune

PostPosted: Wed Jul 23, 2008 1:50 pm
Reply with quote

Can I display EIBCALEN
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Jul 23, 2008 2:03 pm
Reply with quote

rupinder,

Quote:
Can I display EIBCALEN


Code, Check and let us know.
Back to top
View user's profile Send private message
rupinder

New User


Joined: 04 Oct 2005
Posts: 8
Location: pune

PostPosted: Wed Jul 23, 2008 4:22 pm
Reply with quote

thats nice; :-)

I have tried but gettin only 0000 as display,

I need to know the value of EIBCALEN. and want to display but how , don't know
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Jul 23, 2008 4:49 pm
Reply with quote

Suggestion: start CEDF before your transaction. Then you can step through the CICS statements until your program gets started. At that point, EIBCALEN is displayed on the screen. If there's a lot of CICS statements before your program, use PF9 to set a stop condition on the LINK or XCTL to your program and suppress the displays.
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 Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
Search our Forums:

Back to Top