Posted: Thu Jun 29, 2006 9:09 am Post subject: Experts help needed in my REXX Code
Hi members,
I am given a task, to create an ISPF panel,get values from user & process it in REXX script,substitute the i/p variables in ISPF skeleton & append the skeleton o/p to a existing dataset.I am able to do the above tasks but still i am a novice in REXX & ISPF panel programming that i am learning REXX from my mistakes.I have written a not so good,crude REXX program and am not able to complete the code due to lack of knowledge on this.The timeline given for this is so stringent that i have to do this in 4 days(i am already in day2).Any help on this will be great.I have pasted my ISPF PANEL code,REXX code & ISPF Skeleton here.
Experts please help me in this regard..Atleast give me a sample code u would have written for a similar situation like this. Thanks for your time.
I am able to handle my panel code well but my REXX code & skeleton doesnt work the way i want.
I was having a bit of difficuly understanding the logic. If you display a panel, then the user can enter the data and press Enter and process the entry, or enter END and leave. Why bother with the prompt "Do you wish to add more records"? Just return back to the panel each time and let the user decide what to do (add another entry or end).
yes currently my code returns back to panel only,
It works like this cuurently,
the user enters the details on the panel
selects his choice as 'Y' or 'N' and presses enter
If choice is 'Y'
the code appends the skeleton to the output dataset, after substituting values from panel onto skeleton.
and comes back again to the panel for the user to enter his next record.
If choice is 'N'
The code just appends the skeleton to the dataset and comes back to ISPF screen.
Semigeezer & ofer71,
The problem with me is i dont know how to process the variable X(in skeleton) thru REXX code.yeah,it shud be as '&X' in my skeleton.. how can i assign values to X in my REXX code ..like for first record from panel, 'X' in skeleton shud have value A & for second record, X shud have value B and for third, X will be C & so on till the user has his choice as 'N' in the panel. I dont know how can i assign values from alphabet A-Z for X ,till the user presses N..
I dont know how to code the logic..how to increment A to B,B to C etc,..will stem variables logic help me ??? or will i have to code it 26 times redundantly(for alphabets A-Z) in my REXX to assign values to X.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum