View previous topic :: View next topic
|
Author |
Message |
abhijit.kapse
New User
Joined: 04 Nov 2006 Posts: 1
|
|
|
|
what is Reference Modification? |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
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 |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
Back to top |
|
|
Selvamani
New User
Joined: 19 Dec 2006 Posts: 21 Location: California
|
|
|
|
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 |
|
|
BalakrishnaTekula
New User
Joined: 28 Dec 2006 Posts: 1 Location: Chennai
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
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 |
|
|
|