Posted: Fri Jun 07, 2002 7:03 am Post subject: Cobol CopyBook Size
Master
Joined: 07 Jun 2002 Posts: 287 Location: NJ
I need determine the actual length of an inbound and outbound copybook.
How can I do this? The ESQL length function does not provide the results
that I'm looking for.
Example:
Que_Name PIC X(35).
If the queue name has been defined as pic x(35) and the queue name value is 'IBMDEVQ1',
The length function will return eight as the true length of this string.
I need to see 35.
How can I access the message size from the MQInPut Node?
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
I don't think there is any function in ESQL that will return you the size of the MRM field.
LENGTH function returns the size of actual data in a field.
If you want to calculate the size of input message then you can use something like
length(BITSTREAM(InputBody)) _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum