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

How to specify VSAM file to accept input from panel


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

New User


Joined: 23 Apr 2005
Posts: 39
Location: delhi

PostPosted: Sat Feb 28, 2009 12:57 am
Reply with quote

I have little knowledge on REXX so your help is highly appreciated.

I want to design a utility like below.

A panel should accept name and identifier as input. I want a VSAM file to be read to get the data based on the input and display on panel. I was thinking about using CALL command to invoke the COBOL module LINKMVS to display on panel. But I am not sure how and where I can specify my VSAM file? Can you please let me know how can I achieve this and is my design workable?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Feb 28, 2009 1:02 am
Reply with quote

OK. Dumb question time. Why REXX? Instead of calling a COBOL routine, why not just write the whole thing in COBOL?

But, to answer your question, your VSAM dataset would be allocated via a standard TSO/E ALLOCATE command.

And instead of LINKMVS you can use just a standard TSO/E CALL command or ISPF SELECT Service.

*UPDATE*

I just noticed another topic of yours with a SAS question. If not COBOL, then why not maybe write this whole thing in SAS?
Back to top
View user's profile Send private message
sreenivasreddyg

New User


Joined: 23 Apr 2005
Posts: 39
Location: delhi

PostPosted: Sat Feb 28, 2009 1:36 am
Reply with quote

Thanks for the information.

I wanted to try this in REXX so that I can learn REXX.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Feb 28, 2009 1:44 am
Reply with quote

OK. Certainly doable.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sun Mar 01, 2009 11:54 am
Reply with quote

Tip: If you want to read a record from a VSAM file based on a key using REXX, it's better to invoke IDCAMS REPRO with FROMKEY-TOKEY operands from within your REXX.

In addition, there are some free functions for REXX/VSAM. Please check CBTTAPE site.

O.
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top