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

Use of referenve modification


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

New User


Joined: 01 Jun 2005
Posts: 17
Location: bangalore

PostPosted: Tue Aug 30, 2005 12:44 pm
Reply with quote

WAt is the mainpurpose of reference modification and when we need it?


Thanks in advance.
shannu.
Back to top
View user's profile Send private message
mainframesguru

New User


Joined: 24 Jun 2005
Posts: 36
Location: Hyderabad

PostPosted: Tue Aug 30, 2005 2:27 pm
Reply with quote

Hi

Main Purpose of Reference Modification is to get a Part of a String.

It can be used only with Display Usage Clause.
Ex:
01 Ws-variable Pic x(20) Value "IBM Mainframes".
01 Ws-variable2 Pic X(03).

To get only IBM out of the String, use it as

Move Ws-Variable(1: 3) To Ws-Variable2.

Thanks
Vamshi
ICC-ISH
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 CICS configuration and modification g... CICS 3
No new posts Compiler error IGYPS2120-S Expected a... DB2 19
No new posts SQL - WHERE clause with reference mod... DB2 3
No new posts COBOL: Reference Modification to hand... COBOL Programming 5
No new posts SEARCH ALL w/ Reference Modification COBOL Programming 6
Search our Forums:

Back to Top