Home > Software > Mainframe > Cobol
Interview Questions   Tutorials   Discussions   Programs   

Cobol - Difference between renames and redefines with examples?




392
views
asked mar August 3, 2014 02:52 AM  

Difference between renames and redefines with examples?


           

1 Answers



 
answered By Mswami   0  
Reference Modification – equivalent of SUBSTR

‘Reference modification’ is used to retrieve or overwrite a sub-string of a string. ‘:’ is known as reference modification operator.

Syntax: String(Starting-Position:Length)

MOVE ‘18’ TO AGE-OUT(1:2) does the same as STRING command.
When it is used in array elements, the syntax is
Array-element (occurrence) (Starting-Position:Length)



flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert