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
 

 

Need solution for the sort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
bnveena

New User


Joined: 29 May 2007
Posts: 50
Location: hyderabad

PostPosted: Fri Nov 20, 2009 7:27 am    Post subject: Need solution for the sort
Reply with quote

I have an input file like:

Code:
001122       PIGGOTT HOSPITAL            2009-10-012009-10-01
004017    FT. SMITH RIM & BOW CO.                           
004951      BANK OF LAKE VILLAGE         2009-10-012009-10-01


for the second record at position 42 position there is no data

in my outfile I want only those records which have data at 42 onwards...
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4649
Location: Raleigh, NC, USA

PostPosted: Fri Nov 20, 2009 8:07 am    Post subject: Reply to: Need solution for the sort
Reply with quote

Can't you just OMIT any records where column 42 is a space?
Back to top
View user's profile Send private message
bnveena

New User


Joined: 29 May 2007
Posts: 50
Location: hyderabad

PostPosted: Fri Nov 20, 2009 8:36 am    Post subject: Reply to: Need solution for the sort
Reply with quote

yeh.... i got it by omiting the records in the sort.. thnks
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Fri Nov 20, 2009 9:55 am    Post subject:
Reply with quote

Hello,

Does your solution handle the situation where 42 is blank but 43 has data? Is this even a possibility?

When you post jcl, code, data, screen info, etc it is best to use the "Code" tag. This will preserve alignment and improve readability. The original data has been "Code"d.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm
No new posts Db2 load job abending in SORT mistah kurtz DB2 4 Mon Jun 05, 2017 3:58 pm


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