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

Need help in REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Satheeshkumar

New User


Joined: 20 Feb 2009
Posts: 51
Location: Chennai

PostPosted: Sat Oct 24, 2009 6:27 am
Reply with quote

My requirement is that i have to get number of records to be written in to the file from the user and

details of the record( contents) should be get from user by using panel.

this record contents has to be written into PSFILE..

Can anyone help me write code in REXX to accoplish this...
Back to top
View user's profile Send private message
Debabrata Pruseth

New User


Joined: 11 Dec 2008
Posts: 59
Location: Pune , India

PostPosted: Sat Oct 24, 2009 12:02 pm
Reply with quote

One can simply create a PS File , open it and write records in to it .

Why go in a round about way of creating a REXX program , a ISPF panel to do this basic stuff.

Still if you want to do this way only this is my suggestion . Create a panel that will ask the user for the name of PSFile . In the REXX program create the PSFile dynamically , open the file and give it to the user . The user will then enter as much data as he wants and close the file and save it.

In the forum and in google you will find a lot of material to create a panel and how to handle PS Files in REXX.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Sat Oct 24, 2009 1:35 pm
Reply with quote

Developing REXX utilities that use panels to capture data and generate files is cool, though it requires a little knowledge.
If you have the time to learn, test and debug for all the different types of situations, great. But this exercise could evolve into a nightmare. A file that only contains a few display fields is easy; a file with 20 or more fields, packed-decimal, comp, etc. means that you panel must capture not only the data, but the 'pic clause', relative location, length, and then you have to create these different type of fields (comp-3, comp) thru REXX.

This means multi-panels.... you are going to spend a lot of time dealing with the ins&outs of panel control.

IF all you are trying to accomplish is an integrated ISPF 3.2 option with an edit, you are wasting your time. IF the user is expected to enter comp-3/comp data properly in an edit mode, you are not providing anything productive.

Though not as pretty/slick as a Panel driven file generator, IBM does provide IEBDG (Test Data Generator) Program .

Developing an expertise with IEBDG could mean that you deliver something this year.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Oct 24, 2009 2:59 pm
Reply with quote

Half the job of getting a decent response from the forum members is stating clearly and precisely what it is that you wish to achieve.

I have read your post and the subsequent responses, both of which give you information, but not enough to help you because nobody really knows what you want to do.

My initial thoughts were that maybe you wanted to extract certain records from some existing file into a user defined PS file. But hey, I could well be wrong here because I don't have the foggiest idea of what you really want to accomplish.

Maybe if you took some time to detail what it is that you want, then the responses would be far less vague and far more helpful.
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Tue Oct 27, 2009 11:18 pm
Reply with quote

Satheesh,

Read about panels in "ISPF Dialog Devloper's Guide and Reference" manual.

For writing to a file, read about EXECIO and about stem variables in the "TSO Rexx Reference" manual.

You probably also want to learn about the ALLOC and FREE commands. They are documented in "TSO Command Reference".
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top