View previous topic :: View next topic
|
Author |
Message |
monasu1998
Active User
Joined: 23 Dec 2005 Posts: 176 Location: India
|
|
|
|
Hi,
Usually the programs use many LDAs and each LDA contain many variables.
During analysis some times it is really difficult (time consuming)to find in which LDA the variable is defined (by listing each LDA).
Is there any command which can ease the search by not leaving the editor?
(EXPAND is useful only in LIST mode and we can not SCan the variables with the EXPAND command).
Thanks in Advance. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Try EXPAND FORMATTED.
O. |
|
Back to top |
|
|
monasu1998
Active User
Joined: 23 Dec 2005 Posts: 176 Location: India
|
|
|
|
Hi Ofer,
As per my knowledge LIST FORMATTED is used to see the Map in formatted screen.
Still I tried with this command and did not succeed.
ofer71 wrote: |
Try EXPAND FORMATTED.
O. |
Please suggest if any other way exist.
Thanks, |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Try LIST EXPAND FORMATTED.
O. |
|
Back to top |
|
|
monasu1998
Active User
Joined: 23 Dec 2005 Posts: 176 Location: India
|
|
|
|
this is also not of much help....
Now I have changed my focus to batch. In batch I am doing
LIST Module EXPAND and finding the variables in spool/dataset
Thanks, |
|
Back to top |
|
|
monasu1998
Active User
Joined: 23 Dec 2005 Posts: 176 Location: India
|
|
|
|
Hi all,
Here is a cool alternative and I think this should be best followed to locate the Data area where a variable is defined.
If you are looking for a quick way of finding a variable without leaving the editor, then I have something that works 99% of the time.
What I think you are describing is a case where you have something like this:
0010 define data
0020 local using lda1
0030 local using lda2
0040 local using lda3
0050 local using lda4
0060 local using lda5
0070 end-define
0080 write #a #b #c #d #e
0090 end
where you don't know where one of the variables, say #b, exists. Assuming the code already checks, just insert a new variable named for the one the are looking for just after the define data statement, something like this:
0010 define data
0011 local
0012 1 #b (i4)
0020 local using lda1
0030 local using lda2
0040 local using lda3
0050 local using lda4
0060 local using lda5
0070 end-define
0080 write #a #b #c #d #e
0090 end
It doesn't matter what you define #b as, the only requirement is that it's defined in front of the other data areas. If you now simply check the code, you'll get a 283 error saying that the variable has been defined more than once and when you hit enter or return, Natural will mark the LDA where the second occurence has been found. Not elegant, but it's a quick way of finding out where your variable is!
Thanks,
|
|
Back to top |
|
|
|