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

Reference Modification in COBOL


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

New User


Joined: 04 Nov 2006
Posts: 1

PostPosted: Sat Dec 30, 2006 12:56 pm
Reply with quote

what is Reference Modification?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Sat Dec 30, 2006 1:56 pm
Reply with quote

abhijit.kapse wrote:
wh is refrance odification?
Well, you are in the correct forum, why didn't you save yourself time and look at the FM: COBOL Language Reference
which says:
Quote:
Reference modification defines a data item by specifying a leftmost character and
optional length for the data item.
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Sat Dec 30, 2006 2:03 pm
Reply with quote

Quote:
wh is refrance odification?


i.e. http://publib.boulder.ibm.com/infocenter/pdthelp/v1r1/index.jsp?topic=/com.ibm.entcobol3.doc/rlrefmod.htm

http://www.fluffycat.com/COBOL/Reference-Modification/
etc etc etc

PS : it is a question of respect to try to write correctly ( and is not typo affair ).

Note for me : and I though new generation was more able to use new technology !!
Back to top
View user's profile Send private message
Selvamani

New User


Joined: 19 Dec 2006
Posts: 21
Location: California

PostPosted: Sun Dec 31, 2006 1:41 pm
Reply with quote

Code:

01 EMP-NAME PIC X(10)
01 L-EMP-NAME  PIC X(4)

 MOVE "ABCDEFGHIJ" TO EMP-NAME
 MOVE EMP-NAME(6:4) TO L-EMP-NAME
 
 DISPLAY L-EMP-NAME

Result:
FGHI
 


This is an example of how reference modification is used in COBOL.
Back to top
View user's profile Send private message
BalakrishnaTekula

New User


Joined: 28 Dec 2006
Posts: 1
Location: Chennai

PostPosted: Mon Jan 01, 2007 4:18 pm
Reply with quote

Hi,
Pls read Roy & Dastidhar book ,
u wilget full info about Ref Modifi.

by using this we can get retriv some part of string
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Jan 01, 2007 4:36 pm
Reply with quote

BalakrishnaTekula wrote:
How can we identified whether a perticular step is abbend, that is if the job has multipls spets and how can we analyse to solve that problem
First off, is this a question or a signature?
Second off, read Forum Rules, i.e., if it is a question, next time start a new thread.
Thirdly, when an abend occurs, the log tells you in what job and which jobstep the abend occured.
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top