IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to get output of this command into a DSN?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Mon Jan 15, 2007 9:55 pm
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
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

Moderator Emeritus


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

PostPosted: Tue Jan 16, 2007 11:11 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
Search our Forums:

Back to Top