Sort help required in JCL

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
Richin
Member
Posts: 1
Joined: Thu Nov 06, 2014 12:40 pm

Sort help required in JCL

Post by Richin » Thu Nov 06, 2014 12:46 pm

I have an input PS file. it contains several lines of data.
I just want to display a part of it.

Ex: I have a line as below

UNLOAD SUCCESSFUL 000023456 ROWS from xyz table.

I just want the numbers in my output. i.e, matter that is present between UNLOAD SUCCESSFUL & ROWS.

How can I do it using SORT UTILITY in JCL?

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Thu Nov 06, 2014 3:05 pm

Code: Select all

 INREC BUILD=(start-of-number,length-of-number)
If your file contains other data as well, you can use INCLUDE/OMIT COND= or IFTHEN=(WHEN=(logical expression)...

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Sat Nov 08, 2014 1:58 pm

And it is even better if you post sort questions in the sort part of the forum, not the JCL part. That is what it is there for.
Regards
Nic

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others