Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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 -> COBOL Programming
View previous topic :: :: View next topic  
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

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

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: 1288
Location: Chennai, 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: 1288
Location: Chennai, 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

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Length of Tape file Mohan Kothakota JCL & VSAM 9 Thu Apr 20, 2017 10:24 pm
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 6 Sun Nov 06, 2016 8:11 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us