MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DF SORT(JCL)

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
anoopkhetan
Beginner


Joined: 08 Jun 2007
Posts: 3
Topics: 4

PostPosted: Wed Apr 30, 2008 5:42 am    Post subject: DF SORT(JCL) Reply with quote

I am using DF SORT
I have a input file. Input file have Emp ID in first 10 bytes, Emp name in next15 byte and salary in next 10 bytes. In input file all fields are as Character.

I want to add Salary field of all employee in output file.

Please send me yours suggestions
Back to top
View user's profile Send private message
amargulies
Beginner


Joined: 10 Jan 2007
Posts: 123
Topics: 0

PostPosted: Wed Apr 30, 2008 9:42 am    Post subject: Reply with quote

I assume you mean you want to TOTAL all the salary fields in the file. Is this correct?
_________________
Alissa Margulies
SyncSort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed Apr 30, 2008 10:17 am    Post subject: Reply with quote

anoopkhetan,

Try the following DFSORT JCL
Code:

//STEP0100 EXEC PGM=ICEMAN               
//SYSOUT   DD SYSOUT=*                   
//SORTIN   DD *                         
111111111 EMPLOYEENAME01 0000000010     
222222222 EMPLOYEENAME02 0000000020     
333333333 EMPLOYEENAME03 0000000030     
444444444 EMPLOYEENAME04 0000000040     
555555555 EMPLOYEENAME05 0000000050     
666666666 EMPLOYEENAME06 0000000060     
//SORTOUT  DD SYSOUT=*                   
//SYSIN    DD *                         
  INREC FIELDS=(01,35)                   
  SORT FIELDS=COPY                       
  OUTFIL REMOVECC,NODETAIL,             
  TRAILER1=('TOT SAL EMPLOYEES : ',     
            TOT=(26,10,ZD,M11,LENGTH=12))
/*


Hope this helps...

Cheers
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
anoopkhetan
Beginner


Joined: 08 Jun 2007
Posts: 3
Topics: 4

PostPosted: Fri May 02, 2008 4:09 am    Post subject: Reply with quote

But ICEMAN is not working here, I want it by using PGM=SORT
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri May 02, 2008 4:49 am    Post subject: Reply with quote

What error message are you getting? Do you have DFSORT or SYNCSORT installed (ICE* or WER* message IDs).
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
amargulies
Beginner


Joined: 10 Jan 2007
Posts: 123
Topics: 0

PostPosted: Fri May 02, 2008 9:28 am    Post subject: Reply with quote

Nic Clouston wrote:
Do you have DFSORT or SYNCSORT installed

With either SORT utility, you should be able to specify PGM=ICEMAN. In most shops, ICEMAN and SORT are both set up as aliases for the system sort utility.

anoopkhetan wrote:
But ICEMAN is not working here, I want it by using PGM=SORT

As Nic requested, you need to provide the error message you are encountering in order for us to better assist you.
_________________
Alissa Margulies
SyncSort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
Back to top
View user's profile Send private message Send e-mail
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Fri May 02, 2008 9:54 am    Post subject: Reply with quote

Quote:
In most shops, ICEMAN and SORT are both set up as aliases for the system sort utility.


DFSORT ships these aliases so they would be available in all shops that use DFSORT unless the System Programmer did something strange when he installed it.

Doesn't Syncsort ship these as aliases too?
_________________
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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
amargulies
Beginner


Joined: 10 Jan 2007
Posts: 123
Topics: 0

PostPosted: Fri May 02, 2008 10:39 am    Post subject: Reply with quote

Frank Yaeger wrote:
Doesn't Syncsort ship these as aliases too?

Yes. But it is possible for aliases to get disassociated (usually by accident).
_________________
Alissa Margulies
SyncSort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group