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

what is the length register?


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

New User


Joined: 09 Jun 2005
Posts: 38

PostPosted: Tue Aug 16, 2005 3:30 pm
Reply with quote

hai. i need to find the length of an identifier. i've known about the intrinsic length command. how to use it and what is the syntax?


gowtham
Back to top
View user's profile Send private message
shivashunmugam Muthu

Active User


Joined: 22 Jul 2005
Posts: 114
Location: Chennai

PostPosted: Tue Aug 16, 2005 5:41 pm
Reply with quote

there are two syntex

1. FUNCTION LENGTH(var_data_field)

2. LENGTH OF((var_data_field))

For arithmatic expression you can use only 'FUNCTION LENGTH'.

for alphanumeric/natioional charecters we can use LENGTH OF.
Back to top
View user's profile Send private message
gowtham_srgp

New User


Joined: 09 Jun 2005
Posts: 38

PostPosted: Thu Aug 18, 2005 3:59 pm
Reply with quote

shivashunmugam Muthu wrote:
there are two syntex

1. FUNCTION LENGTH(var_data_field)

2. LENGTH OF((var_data_field))

For arithmatic expression you can use only 'FUNCTION LENGTH'.

for alphanumeric/natioional charecters we can use LENGTH OF.



hai shivashanmugam Muthu. can you code an example to show this? do we need to use any compute statements to trap the values to the identifier?


gowtham
Back to top
View user's profile Send private message
shivashunmugam Muthu

Active User


Joined: 22 Jul 2005
Posts: 114
Location: Chennai

PostPosted: Fri Aug 19, 2005 9:22 am
Reply with quote

there is no arithmatic expressions involved...

<New_variable> = LENGTH OF <VARIABLE>

New variable is the filed where the length of your existing variable to be populated...
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