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: 4648
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 Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


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