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
 

 

what is the length register?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: what is the length register?
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    Post subject:
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    Post subject:
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    Post subject:
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    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 SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 2 Sun Nov 06, 2016 8:11 pm
No new posts Joinkeys operation when key1 and key2... Susanta DFSORT/ICETOOL 5 Wed Nov 02, 2016 5:35 pm
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm
No new posts File Manager with Variable Length File ahabib IBM Tools 10 Thu Mar 31, 2016 11:00 pm
No new posts How to copy data with delimters to fi... Venkata Ramayya DFSORT/ICETOOL 2 Wed Feb 24, 2016 10:03 pm


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