View previous topic :: View next topic
|
Author |
Message |
siddesh
New User
Joined: 13 Mar 2006 Posts: 1
|
|
|
|
Hi,
I have a record like below.
01 invoice
02 standard
04 count pic s99 comp-3
02 detail occurs 1 to 17 times depending on count
04 detail1
06 REFERENCE pic x(6)
I want to refer REFERENCE in my program.
Can u please help how to refer the same...
Thanks
Arun |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
I think You can use
REFERENCE OF detail1 OF detail(ws-ctr)
Here ws-ctr is used for subscript. |
|
Back to top |
|
|
arunswap
New User
Joined: 23 Mar 2006 Posts: 13
|
|
|
|
I have a variable with picture clause of X(4).
I want it to be moved to a host variable with picture clause of pic s9(9) comp.
is it possible.... |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
Arun,
Refer as REFERENCE(SUBSCRIPT)
Dave |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Arun,
You should start a new topic for your ques. It's easy, just scroll up to the top of this page and click on "New Topic". You'll get a screen similar to this one. Just fill in the Subject window... something like "moving a variable to a host variable". Then pose your ques in the big box. |
|
Back to top |
|
|
rocksolid
New User
Joined: 29 Aug 2006 Posts: 21 Location: India
|
|
|
|
Hi Guptae,
If it (REFERENCE) IS the unique data name in the program, you can simply refer like REFERENCE OF (WS-CTR).
Otherwise, we need to refer as you said.
Thank U, |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi Rocksolid,
In this case What r u saying is right but better if use qualifier bcoz if latter point some body amend the code & use a variable with Reference then. |
|
Back to top |
|
|
|