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

Searhing for variables


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Tue Sep 01, 2009 9:43 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Sep 02, 2009 1:21 am
Reply with quote

Try EXPAND FORMATTED.

O.
Back to top
View user's profile Send private message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Wed Sep 02, 2009 11:19 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Sep 03, 2009 12:36 am
Reply with quote

Try LIST EXPAND FORMATTED.

O.
Back to top
View user's profile Send private message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Tue Sep 22, 2009 7:40 am
Reply with quote

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 icon_smile.gif

Thanks,
Back to top
View user's profile Send private message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Thu Sep 24, 2009 8:18 pm
Reply with quote

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,
icon_smile.gif
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 -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts JCL with variables JCL & VSAM 1
No new posts JCL Variables JCL & VSAM 1
No new posts reset/clear ALL application profile v... TSO/ISPF 3
No new posts REXX - Adding variables CLIST & REXX 8
No new posts using based or defined variables PL/I & Assembler 2
Search our Forums:

Back to Top