Joined: 26 Apr 2004 Posts: 4648 Location: Raleigh, NC, USA
arun_st, there are some code examples on the IBM website that show how to perform various tasks in REXX running in USS. If I remember correctly, one of them shows how to work with a PDS using the BPXWDYN dynamic allocation routine.
Joined: 13 Feb 2007 Posts: 55 Location: Pune India
there is a way use outtrap command to do this outtrap command traps the output of tso/ispf commands into an array variable or a common variable ..
ADDRESS ISPEXEC "CONTROL ERRORS RETURN"
ADDRESS TSO "LISTDS 'ABC.DEF.GHI' MEMBERS
CALL OUTTRAP "OFF"
DO I = 1 TO TRAP.0 BY 1
here array trap.contains the the members of thepds from its 6th or 8th element i thinknot sure on that
after getting these membernames open them using EXECIO and read it into another array using the same command
eg: 'EXECIO * DISKR IN ( FINIS STEM.'
is an eg