Page 1 of 1

NEED REXX CODE

PostPosted: Fri Oct 19, 2012 12:23 pm
by krishna1990
Hi,
I have tried working on rexx code to view the dataset. can u help me to view the dataset using layout :?

Re: NEED REXX CODE

PostPosted: Fri Oct 19, 2012 1:28 pm
by NicC
What do you mean by 'using layout'?
Show us what you have tried. Are you using ISPEXEC calls? If not, why not? Use the MODEL ISPF command to get ISPF dialogue stuff into your Rexx programs.
I assume that you are using the manuals? Rexx Language Reference for Rexx and ISPF Dialogue Services manual.

Re: NEED REXX CODE

PostPosted: Fri Oct 19, 2012 1:38 pm
by enrico-sorichetti
the first step to get good answers is to post good questions!

OK for the language barrier, but You are expecting too much.

reread Your post and sincerely tell us if it is something that we can work on.

anyhow...
rexx does not have layouts.
everything is a STRING of CHARACTERS
it' s up to the coder(You) to use SUBSTR, PARSE, ... to separate the <record> into the single filelds
and to convert them to the proper DISPLAY EDITED format
and that must be done by IMPERATIVE clauses not DESCRIPTIVE one

the general layout concept ( DESCRIPTIVE ) applies to fileaid and filemanager

Re: NEED REXX CODE

PostPosted: Fri Oct 19, 2012 10:41 pm
by NicC
If you really mean a layout as in: I want this bit of data displayed up there and that bit down there, nother bit in the middle of the screen etc then you could do it with Rexx alone but it would take an awful lot of code compared with just creating a panel to display the data. I did this once because our bill printing was outsourced so we had no means of displaying the bills in a presentable form. Quite a few lines of rexx (but not overly many) and a few panels and we could see a reasonable representation of the bills. Rexx manual and dialogue developers manual