Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8620
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 Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us