View previous topic :: View next topic
|
Author |
Message |
Greg Sonoto
New User
Joined: 24 Nov 2022 Posts: 5 Location: US
|
|
|
|
Hi Team,
How can i store Jes2 command output like D A,L commands in a PS.
Please provide a sample JCL if you executed it.
Thansk,
Greg. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1338 Location: Bamberg, Germany
|
|
Back to top |
|
|
Greg Sonoto
New User
Joined: 24 Nov 2022 Posts: 5 Location: US
|
|
|
|
Hi Joerg,
I have used below JCL to get the D A,L output write to SYSOUT=*.
//S1 EXEC PGM=ISFAFD
//ISFOUT DD SYSOUT=*
//ISFIN DD *
/D A,L
/*
After running above job the output is in SYSOUT is shown below.
COMMAND INPUT ===> SCROLL
DA Active users INIT Initiators
I Input queue PR Printers
O Output queue PUN Punches
H Held output queue RDR Readers
ST Status of jobs LINE Lines
NODE Nodes
LOG System log SO Spool offload
SR System requests SP Spool volumes
MAS Members in the MAS
JC Job classes RM Resource monitor
SE Scheduling environments CK Health checker
RES WLM resources
ENC Enclaves ULOG User session log
PS Processes
Please let us know how can i get the output to flat file. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1338 Location: Bamberg, Germany
|
|
|
|
Sample:
Code: |
//COMMAND EXEC PGM=ISFAFD
//ISFOUT DD DUMMY
//PRTOUT DD ..
//ISFIN DD *
SET CONSOLE BATCH
SET DELAY 120
W/<your_cmd>
PRINT FILE PRTOUT
ULOG
PRINT
PRINT CLOSE
/* |
|
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 736 Location: Denmark
|
|
|
|
I most strongly recommend that you use the REXX SDSF API, like so:
Code: |
// EXEC RXINSTRM
//LIST DD SYSOUT=*
//REXX DD *
/* rexx sdsf cmd */
zz=isfcalls('ON')
Address SDSF ISFSLASH "'d a,l' (WAIT)"
cc=rc
zz=isfcalls('OFF')
if cc<>0 then exit xmsg('Console failed rc' cc)+8
do n=1 to isfulog.0
queue isfulog.n
end
"execio" queued() "diskw list (finis)"
exit xmsg('Done..')
Xmsg: say arg(1);return 0 |
The RXINSTRM is just my way of running REXX pgms inline. |
|
Back to top |
|
|
|