Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Length of Dfhcommarea

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
rupinder

New User


Joined: 04 Oct 2005
Posts: 9
Location: pune

PostPosted: Tue Jul 22, 2008 9:03 pm    Post subject: Length of Dfhcommarea
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
References
Robert Sample

Senior Member


Joined: 06 Jun 2008
Posts: 936
Location: Atlanta, GA

PostPosted: Tue Jul 22, 2008 9:13 pm    Post subject:
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: 1148
Location: Mumbai - India

PostPosted: Wed Jul 23, 2008 10:01 am    Post subject: Reply to: Length of Dfhcommarea
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: 9
Location: pune

PostPosted: Wed Jul 23, 2008 1:50 pm    Post subject: Reply to: Length of Dfhcommarea
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: 1148
Location: Mumbai - India

PostPosted: Wed Jul 23, 2008 2:03 pm    Post subject: Reply to: Length of Dfhcommarea
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: 9
Location: pune

PostPosted: Wed Jul 23, 2008 4:22 pm    Post subject: Reply to: Length of Dfhcommarea
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

Senior Member


Joined: 06 Jun 2008
Posts: 936
Location: Atlanta, GA

PostPosted: Wed Jul 23, 2008 4:49 pm    Post subject:
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1