View previous topic :: View next topic
|
Author |
Message |
hac
New User
Joined: 18 Jan 2008 Posts: 30 Location: mumbai
|
|
|
|
how to capture the output of "HLIST DS('data set name') BCDS"
i tried with outtrap..but did not work.... |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
HSM is a law unto itself.
You either accept where HSM puts the output or ...................... well, you don't have a choice. You have the option to write to a dataset or the terminal. I believe that the terminal output is done via TPUT and hence you can not intercept it.
You need to issue the HLIST command in REXX and use the WAIT parameter and then process the dataset created - as specified by your HLIST parameter cards. |
|
Back to top |
|
|
hac
New User
Joined: 18 Jan 2008 Posts: 30 Location: mumbai
|
|
|
|
Thank You.... |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
why not trap output via a batch job
Code: |
//HLIST EXEC PGM=IKJEFT01,DYNAMNBR=30
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
HLIST DS('input.dataset') BCDS ODS('output.dataset')
|
Gerry |
|
Back to top |
|
|
|