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 get output of this command into a DSN?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
NickCZ

New User


Joined: 14 Dec 2005
Posts: 5

PostPosted: Mon Jan 15, 2007 3:28 pm    Post subject: How to get output of this command into a DSN?
Reply with quote

Hello,

I have a problem with getting output into a DSN of this command HSEND Q CDS.

I use this JCL:
//RMM EXEC PGM=IKJEFT01
//SYSTSPRT DD DSN=&&RESULT,DISP=(,PASS),
// SPACE=(CYL,(2,1)),UNIT=SYSDA
//SYSTSIN DD *
RMM LC ALL

It works for RMM LC ALL, but for HSEND Q CDS - no.

What`s the cause of it?

Thanks for your answers.

Regards, Nick.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jan 15, 2007 9:55 pm    Post subject:
Reply with quote

Hello,

Please post the output(s) from the successful run and the problem run.

If we cannot see what the system provides, we cannot be as much help.
Back to top
View user's profile Send private message
NickCZ

New User


Joined: 14 Dec 2005
Posts: 5

PostPosted: Tue Jan 16, 2007 3:39 pm    Post subject: How to get output of this command into a DSN?
Reply with quote

The output from the successful run (RMM LC ALL):

READY
RMM LC ALL
Control record:
Type = MASTER Create date = 06/10/1998 Create time = 14:25:18
Journal: Utilization = 4% (75% threshold) STATUS: = ENABLED
CDS: Utilization = 35%
Exit status: Options:
EDGUX100 = ENABLED Stacked Volumes = NONE
EDGUX200 = NONE Extended Bin = DISABLED
Last backup: Last expiration processing:
Date = 11/01/2007 Time = 05:00:49 Date = 11/01/2007 Time = 05:00:51

____________________
JCL:

//LIRMMLC1 JOB NOTIFY=&SYSUID,CLASS=A,MSGCLASS=A
//CONTROL EXEC PGM=IKJEFT01,DYNAMNBR=25,REGION=2048K,TIME=600
//SYSTSPRT DD DSN=&SYSUID..SCRIPTS(RMMLC),DISP=(SHR)
//SYSTSIN DD *
HSEND Q CDS
//************************************************************/


The output from the problem run (HSEND Q CDS):

READY
HSEND Q CDS
READY
END
______________________

The problem is I got the info about CDS on my screen but I need to put it in a DSN; in the DSN I have this:
READY
HSEND Q CDS
READY
END
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jan 16, 2007 11:11 pm    Post subject:
Reply with quote

Hello,

You may find that the job is working with the PUTLINE macro but not with the TPUT macro witch is used by HSM. . .

Depending you how it comes back to your screen, you may be able to save it from that screen.

You might also look in the userid.SPFLOGn.LIST dataset that is created and logs activity for your ispf session.
Back to top
View user's profile Send private message
prasaar

New User


Joined: 11 Dec 2006
Posts: 21
Location: India

PostPosted: Thu Feb 01, 2007 4:03 pm    Post subject:
Reply with quote

Hi,

Dont think it is possible to capture HSM query command output in a dataset. The output of the query command will be diplayed in the terminal and cannot be found in the syslog or HSM log to copy it into a dataset.

However other HSM commands allow you to mention a output dataset. For example. if you'd like to know the backup versions of all datasets for user ABCXYZ use the following command:

TSO HLIST DSN LEVEL(ABCXYZ) BCDS ODS(BCDS.OUTPUT)

This command will list all backup version datasets of ABCXYZ and the output will be put in "URHLQ.BCDS.OUTPUT"

Cheers,
Arun Prasad
MVS Admin
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm


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