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
 

 

Processing Only Part of a Job Stream

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
Charles Wolters

New User


Joined: 30 Mar 2011
Posts: 48
Location: United States

PostPosted: Wed Aug 29, 2012 12:12 am    Post subject: Processing Only Part of a Job Stream
Reply with quote

I am going to post this question in the TSO/ISPF but since it also involves SAS I will understand if a moderator tells me to move it but I think my question relates to other applications.

My job starts with the JCL statements and then after the //SYSIN DD * statement I have about two thousand lines of SAS code. When the researchers look at the output from the first 1000 lines of code they may not have interest in looking at any output or listings generated by the last 1000 lines of code. I don't want to delete this code because the researchers may decide to change the criteria of whom to include in the analysis or the analytic data sets may get updated at some point.

My question is whether there is a TSO command that allows you to tell the processor to only consider the first X lines of code and ignore the rest. In looking at the TSO documentation I had noticed the END operand for the SUBMIT command and I wanted to know if this was appropriate to my problem. I know that I can wrap the code I don't want processed in a SAS macro (this may be the most efficient way?) but wanted to explore options using TSO/ISPF.
CW


Charles Wolters
Back to top
View user's profile Send private message

prino

Active Member


Joined: 07 Feb 2009
Posts: 989
Location: Oostende, Belgium

PostPosted: Wed Aug 29, 2012 12:18 am    Post subject:
Reply with quote

VIEW the job to be submitted and add a label (let's say .LAST) to the last line to be submitted, then do

Code:
SUB .ZF .LAST


or just add

Code:
//


after the last line to be submitted
Back to top
View user's profile Send private message
Charles Wolters

New User


Joined: 30 Mar 2011
Posts: 48
Location: United States

PostPosted: Wed Aug 29, 2012 12:26 am    Post subject: RE: Processing only a part of the job stream
Reply with quote

Prino,

So you can do that! Intuitively I had thought that would be the natural approach for the TSO developers to come up with but I could not find any reference to it in any of the TSO documentation I looked at. If it is not a struggle for you maybe you could point me to a reference. Thanks for your quick reply.

CW
Back to top
View user's profile Send private message
prino

Active Member


Joined: 07 Feb 2009
Posts: 989
Location: Oostende, Belgium

PostPosted: Wed Aug 29, 2012 12:35 am    Post subject:
Reply with quote

From the ISPF Tutorial:

Code:
TUTORIAL ------------------ EDIT - 'SUBMIT' COMMAND ------------------ TUTORIAL
COMMAND ===>                                                                   
                                                                               
  The SUBMIT command (may be abbreviated SUB ) is used to submit a job         
  stream.                                                                     
                                                                               
        Command ===> submit              submits the data being edited.       
                                                                               
  The SUBMIT command is used to submit one or more jobs.  The data that is     
  being edited is stored in a temporary data set, and the TSO SUBMIT           
  command is invoked.  The same requirements that exist when using the TSO     
  SUBMIT command directly apply to the edit SUBMIT command.                   
                                                                               
  An optional "range" operand is supported.  You can specify the labels of     
  the first and last lines of the data to be submitted as a job stream.       
                                                                               
  The first line of the data stream that is submitted is logged in the         
  ISPF log file to identify the job being submitted.                           
                                                                               
  Note: Data with a logical record length (LRECL) greater than 80 is           
  truncated to 80 bytes before being passed to the TSO SUBMIT command.         
  Data with a logical record length less than 80 is padded with blanks         
  before being passed to the TSO SUBMIT command.                               
Back to top
View user's profile Send private message
Charles Wolters

New User


Joined: 30 Mar 2011
Posts: 48
Location: United States

PostPosted: Wed Aug 29, 2012 12:47 am    Post subject: RE: Processing only part of the job stream
Reply with quote

Prino,

Yep, there it is and it could not be any clearer. This forum is like (to quote George Bush) a thousand points of light and without it I would have been stumbling around for a few days. Thanks again.

CW
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Run stats processing on zIIP Engine Virendra Shambharkar DB2 9 Fri Oct 14, 2016 10:24 am
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts in-stream data set (inline data set) ... Andi1982 JCL & VSAM 4 Thu Jul 07, 2016 2:59 pm
No new posts Extracting Information from DD Statem... Charles Wolters All Other Mainframe Topics 7 Wed Apr 13, 2016 10:21 pm
No new posts Why part promote/part demote should b... rohanthengal All Other Mainframe Topics 4 Fri Nov 27, 2015 3:32 pm


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