Joined: 11 Dec 2008 Posts: 59 Location: Pune , India
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.
Joined: 20 Oct 2006 Posts: 6970 Location: porcelain throne
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.
Joined: 14 Mar 2007 Posts: 8657 Location: Back in jolly old England
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.