Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Searhing for variables

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
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    Post subject: Searhing for variables
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: 2360
Location: Israel

PostPosted: Wed Sep 02, 2009 1:21 am    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Thu Sep 03, 2009 12:36 am    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts Is it possible to pass variables of s... Csongor CLIST & REXX 2 Fri Jun 10, 2016 7:33 pm
No new posts TWS 'global' or 'local' variables Steve Coalbran IBM Tools 2 Thu Mar 17, 2016 7:40 pm
No new posts Using different values for Skeleton d... venksiv CLIST & REXX 8 Thu Sep 03, 2015 5:28 pm
No new posts Types of variables REXX tvinodkumar7 TSO/ISPF 2 Wed Aug 26, 2015 6:57 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us