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

Command to open a dataset


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
himanshu_varma

New User


Joined: 15 Dec 2008
Posts: 4
Location: chennai

PostPosted: Thu Apr 09, 2009 7:17 pm
Reply with quote

Hi all,

I am pretty new to REXX and have been trying to come up with a simple REXX program to open a specific dataset each time i run the tool.

Part of the code is as below:

Code:
------------------------------------------------------------------------------
/*REXX*/
.
.
.
.

TRACE "O"
ADDRESS "ISPEXEC"
"SELECT PGM(ISPSTRT) PARM(3.4) SCRNAME(open)"
--------------------------------------------------------------------------------

The code works perfectly upto this point. Next what i wish to do is insert some text in the position (row/column) - 11/24.

I tried searching for a solution and got the hint that the following code should do it and this is what i came up with -

Code:
-------------------------------------------------------------------------
ADDRESS ISREDIT "CURSOR = 11 24"
VAR = PGMNAME
ADDRESS ISREDIT "VAR"
--------------------------------------------------------------------------
Here,
VAR contains the string that i want to place on the screen. But this code doesnt work.

Could someone please have a look and help me out in this.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Apr 09, 2009 7:31 pm
Reply with quote

instead of us looking, it would be better for You to look at the manual icon_biggrin.gif

You are mixing up things !

ISPEXEC addresses the generic ISPF commands

ISREDIT addresses the EDIT/VIEW environment ( EDIT/VIEW macros )

describe better Your requirement/objectives,
You will stand more chances of getting help

do not mix up code without understanding it, most of the time it will not work!
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Thu Apr 09, 2009 8:21 pm
Reply with quote

In this limited case I disagree with enrico.

Go ahead and search and put together bits of code to try to do what you need done. You also should use the manual to help you. When/If it does not work post your questions on this forum. You have shown that you have searched and tried, good for you.

But we do need a better description of what you would like to do.

When I need to open a file or PDS member in ISPF edit I use something like the following. Where DSN holds the name of the dataset to edit. Is that what you would like to do?
Code:
ADDRESS "ISPEXEC" "EDIT DATASET('" || DSN || "')"
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Apr 09, 2009 9:20 pm
Reply with quote

Rather than displaying the option 3.4 panel, I suggest using the LMDLIST service of ISPF to get the dataset list. And knowing the dataset name, call your program directly from rexx.
Back to top
View user's profile Send private message
himanshu_varma

New User


Joined: 15 Dec 2008
Posts: 4
Location: chennai

PostPosted: Fri Apr 10, 2009 11:46 am
Reply with quote

Thanks Enrico, Douglas and Pedro I really appreciate all your inputs.

I fear i was not very clear on my requirements, so let me attempt that again.

Requirement:
In my workplace we use a tool called expeditor, which is used to debug a COBOL program line by line. The inputs to the expeditor screen need to be entered manually and takes up valuable time.

I plan to create a tool which would read the JCL of the program and automatically enter these inputs in the expeditor screen. (I gave the 3.4 problem as an example as i wasn't sure if anyone else uses expeditor.)

So Far...
I have already coded the part where the JCL is being read and the required fields stored in variables. Also i am able to call on the screen through my program upto the point where i need to enter the stored values in the screen.

Now here is where my problem starts. I checked the manual and several sites and couldn't come up with a command that will directly enter the stored values on the screen.

few points to note here...
1. The expeditor screen is within the ispf environment.
2. I invoke the expeditor screen from the command ==> by giving a "start c.xt".

what i would really like to do is to place the text in the variables in specific positions on the screen.

For E.g.

I would like to place the text - 'cec.my.program(pgm1)' at the row:18 col:30 position.

Any help is much appreciated. icon_smile.gif
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Apr 10, 2009 12:53 pm
Reply with quote

are you aware of the COPY command in the xpeditor screen for setting up the jcl? this copies existing jcl into xpeditor. no need to re-invent the wheel.
Back to top
View user's profile Send private message
himanshu_varma

New User


Joined: 15 Dec 2008
Posts: 4
Location: chennai

PostPosted: Fri Apr 10, 2009 4:54 pm
Reply with quote

Are you referring to the 1.4 option eithin xpediter where we can Edit the Allocation List?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Apr 10, 2009 5:53 pm
Reply with quote

yes.

If you are a systems programmer, tasked with installing xpeditor,
my comments are/were unnecessary
and I hope you receive the answers necessary to create the interface.

If you are not, try using the COPY option of that screen.
Back to top
View user's profile Send private message
himanshu_varma

New User


Joined: 15 Dec 2008
Posts: 4
Location: chennai

PostPosted: Fri Apr 10, 2009 6:41 pm
Reply with quote

Brenholtz ,

Thanks for that input, i was not aware of this feature and I referred to
www.geocities.com/*****/XPEDITER.html for more info on it.

But i would still like to pursue this tool as its a good opportunity to learn some new stuff icon_smile.gif[/url]
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Fri Apr 10, 2009 8:55 pm
Reply with quote

I do not believe there is a TSO or ISPF method to update an ISPF panel by row and column as you suggest.

One thing you can try is to copy the panel in question and see if you can use a customized version of it. Copy the panel to your private ISPPLIB dataset and make sure it is first in concatenation.

1. Edit the panel and see what variable names are used in the fields
2. in the )INIT section, use VGET to get your values and assign them to the panel variables.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
Search our Forums:

Back to Top