Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
Posted: Tue May 13, 2008 8:28 am Post subject:
Do you know what JCL is? It cannot do what you want. It tells the OS what programs to run, in what sequence and what files those programs need plus some other information. What you are looking for is, possibly a utility program (but why exclude ICETOOL?) or even a quick Rexx program or Easytrieve solution. _________________ Utility and Program control cards are NOT, repeat NOT, JCL.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Tue May 13, 2008 9:43 am Post subject:
Maddy,
You can use a DFSORT job like the following to do what you asked for. You didn't give the RECFM and LRECL of the input file, so I assumed it's RECFM=FB and LRECL=5. You can change the job appropriately for other attributes.
If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Wed May 14, 2008 10:04 am Post subject:
emadhubabu,
There's no such thing as "simple SORT". You're either using DFSORT, Syncsort or CA-Sort.
Code:
OUTREC = ( SEQNUM,3,ZD,4:5)
This syntax is invalid as shown in several ways. It has blanks where they don't belong, it has OUTREC= which is only valid for an OUTFIL statement. And it has 4:5 which is only valid for VB records, but would require specifying "1,4," for the RDW before SEQNUM.
So basically, your entire post makes no sense. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum