View previous topic :: View next topic
|
Author |
Message |
scorp_rahul22 Currently Banned New User
Joined: 06 Aug 2007 Posts: 42 Location: chennai
|
|
|
|
i have written code in rexx to read contents of a file from 1 to 38 character and that field to be name of datset , i want to open that dataset to read all the members which are inside that and write in output file.
i am not getting what to do after this
Code: |
/*REXX*/
"EXECIO * DISKR INDD (FINIS STEM SRC."
DO CNT = 1 TO SRC.0
PARSE VAR SRC.CNT 5 FIRST 8 13 SECOND 38 THIRD
SAY THIRD
END
EXIT
|
|
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
So the variable "THIRD" contains the name of a PDS? And then you say you want to "read all the members which are inside that and write in output file". How do you plan to determine what all the member names are? |
|
Back to top |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
Quote: |
i have written code in rexx to read contents of a file from 1 to 38 character and that field to be name of datset , i want to open that dataset to read all the members which are inside that and write in output file. |
Your intention is not clear, please specify your question clearly. |
|
Back to top |
|
|
kavikesav
New User
Joined: 22 Mar 2007 Posts: 21 Location: chennai
|
|
|
|
to list the members in the dataset u can use the listds command
but y u r splitting the dataset name to somany things u can take the first 38 characters and store it in a variable name and then using the syntax
"listds ('"var"') members"
then proceed |
|
Back to top |
|
|
|