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

Jes2 command output


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Greg Sonoto

New User


Joined: 24 Nov 2022
Posts: 5
Location: US

PostPosted: Sat Nov 26, 2022 9:40 pm
Reply with quote

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
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1247
Location: Bamberg, Germany

PostPosted: Sat Nov 26, 2022 11:38 pm
Reply with quote

See https://www.ibm.com/docs/en/zos/2.3.0?topic=batch-invoking-sdsf-in Invoking SDSF in batch
Back to top
View user's profile Send private message
Greg Sonoto

New User


Joined: 24 Nov 2022
Posts: 5
Location: US

PostPosted: Sun Nov 27, 2022 7:05 am
Reply with quote

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
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1247
Location: Bamberg, Germany

PostPosted: Sun Nov 27, 2022 11:19 am
Reply with quote

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
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 712
Location: Denmark

PostPosted: Sun Nov 27, 2022 6:31 pm
Reply with quote

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
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 -> All Other Mainframe Topics

 


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