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
 

 

Command to open a dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Command to open a dataset
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Thu Apr 09, 2009 7:31 pm    Post subject: Reply to: Rexx command to open a dataset
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    Post subject:
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

Senior Member


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

PostPosted: Thu Apr 09, 2009 9:20 pm    Post subject: Reply to: Command to open a dataset
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    Post subject:
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    Post subject:
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    Post subject: Reply to: Command to open a dataset
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    Post subject:
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    Post subject:
Reply with quote

Brenholtz ,

Thanks for that input, i was not aware of this feature and I referred to
http://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

Senior Member


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

PostPosted: Fri Apr 10, 2009 8:55 pm    Post subject: Reply to: Command to open a dataset
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 4 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am


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