Hi,
I have a VB file which has data as below. here i need to sort file based on values before comma (values are not in fixed length). Is this possible in SORT? If so, can you please help with sample sortcard?
8789753457867,BEN
178975345,JOHN
18788879,ROBIN
37564785,WILLAIMS
Sort condition with valriable field length
-
- Posts: 16
- Joined: Mon Jan 31, 2011 12:26 pm
- Skillset: beginner
- Referer: friend
Sort condition with valriable field length
Thanks,
John
John
-
- Global moderator
- Posts: 3805
- Joined: Tue Jan 25, 2011 12:02 am
- Skillset: Easytrieve Plus, Cobol, Utilities, that sort of stuff
- Referer: Google
Re: Sort condition with valriable field length
Have a look at PARSE in your documentation, there are examples as well, also many here and elsewhere.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
sort card to add zeros to varying alphanumeric field.
by longfall » Thu Mar 09, 2023 12:03 am » in DFSORT/ICETOOL/ICEGENER - 1
- 1821
-
by sergeyken
View the latest post
Thu Mar 09, 2023 2:04 am
-
-
-
Convert fixed-length input records to variable-length output
by xcspg3 » Wed Oct 23, 2024 1:45 pm » in DFSORT/ICETOOL/ICEGENER - 5
- 1426
-
by sergeyken
View the latest post
Wed Oct 30, 2024 1:09 pm
-
-
-
Merge multiple fixed length files of different record length
by corvette1982 » Mon Mar 01, 2021 11:46 pm » in JCL - 8
- 5243
-
by willy jensen
View the latest post
Tue Mar 02, 2021 3:02 am
-
-
- 1
- 1764
-
by sergeyken
View the latest post
Fri Mar 26, 2021 11:59 pm
-
-
COBOL SORT - How to sort entire file first & sort by Key
by k_ekam » Thu Dec 01, 2022 12:58 pm » in IBM Cobol - 3
- 1535
-
by Robert Sample
View the latest post
Wed Dec 07, 2022 7:32 am
-