Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to capture the output of "HLIST DS('data set name')

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
hac

New User


Joined: 18 Jan 2008
Posts: 30
Location: mumbai

PostPosted: Tue Nov 18, 2008 1:27 pm    Post subject: how to capture the output of "HLIST DS('data set name')
Reply with quote

how to capture the output of "HLIST DS('data set name') BCDS"
i tried with outtrap..but did not work....
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Nov 18, 2008 3:13 pm    Post subject:
Reply with quote

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
View user's profile Send private message
hac

New User


Joined: 18 Jan 2008
Posts: 30
Location: mumbai

PostPosted: Tue Nov 18, 2008 3:21 pm    Post subject: Reply to: how to capture the output of "HLIST DS('data
Reply with quote

Thank You.... icon_biggrin.gif
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Tue Nov 18, 2008 4:18 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us