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

How to sort an input file on the basis of COMP Field


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
prashant.k.gupta

New User


Joined: 08 Oct 2007
Posts: 6
Location: Pune

PostPosted: Wed Jan 30, 2008 4:35 pm
Reply with quote

HI,
I would like to use SYNCSORT to SORT an input file on the field which contain the comp values.
Could you please help me out?
Back to top
View user's profile Send private message
Ajay Baghel

Active User


Joined: 25 Apr 2007
Posts: 206
Location: Bangalore

PostPosted: Wed Jan 30, 2008 4:51 pm
Reply with quote

I know how to do it with DFSORT.

//xxxx EXEC PGM=SORT

Use the below sort card..

//SYSIN DD *
SORT FIELDS=(start_col,lengthinbytes,BI,A)
/*


-Ajay
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jan 30, 2008 9:24 pm
Reply with quote

Hello,

Ajay's solution should work for Syncsort as well.

If there are problems or questions, please post them here.
Back to top
View user's profile Send private message
prashant.k.gupta

New User


Joined: 08 Oct 2007
Posts: 6
Location: Pune

PostPosted: Thu Jan 31, 2008 12:00 pm
Reply with quote

Thanx,
It's working.

Prashant
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jan 31, 2008 9:17 pm
Reply with quote

You're welcome - thanks for letting us know icon_smile.gif

d
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top