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 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 OUTREC with ALter Command scorp_rahul23 DFSORT/ICETOOL 1 Wed Nov 22, 2017 3:10 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts Copy selected columns from 2 input fi... Poha Eater DFSORT/ICETOOL 3 Thu Nov 02, 2017 3:43 pm
No new posts Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm

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