hi
file structure is given below
LFI ,TEXT ,1 , ,TEXT ,,1 , , ,, ,, ,, ,,KEY
SUB_NO ,TEXT ,2 , ,TEXT ,,7 , , ,, ,, ,, ,,KEY
A_LFI ,TEXT ,9 , ,TEXT ,,1 , , ,, ,, ,, ,,KEY
BUS_CAT ,TEXT ,10 , ,TEXT ,,2 , , ,, ,, ,, ,,KEY
PERCENT ,SMALL ,12 , ,ZONED ,,3 , , ,, ,, ,, ,,
D_CR ,BIG ,15 , ,PACKED ,,4 , , ,, ,, ,, ,,
D_UPD ,BIG ,19 , ,PACKED ,,4 , , ,, ,, ,, ,,
UPD_SEQ ,SMALL ,23 , ,PACKED ,,2 , , ,, ,, ,, ,,
FILLER ,TEXT ,25 , ,TEXT ,,11 , , ,, ,, ,, ,,
I have to read the sub_no from other file and then based on that sub_no i have to read the record from the above file.
can we do that?
so is there anyway to read the record based on part of the key, randomly?
how to read the record randomly based on the part of the key
-
- Posts: 5
- Joined: Thu Jul 03, 2008 9:08 pm
- Skillset: cobol,jcl,db2,cics
- Referer: friend
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: how to read the record randomly based on the part of the key
Hello,
You need to post a more clear definition of what you want to do.
Using the "Code" tag, post some sample records and describe how you want to process them.
What you have posted needs clarification and some sample records should help us help you.
You need to post a more clear definition of what you want to do.
Using the "Code" tag, post some sample records and describe how you want to process them.
What you have posted needs clarification and some sample records should help us help you.
Hope this helps,
d.sch.
d.sch.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Create multiple records based on one record within a file.
by chillmo » Thu Aug 11, 2022 3:54 am » in Syncsort/Synctool - 5
- 7691
-
by sergeyken
View the latest post
Fri Aug 12, 2022 2:23 am
-
-
-
Copy partial record after a string in a record using SORT.
by Esmayeelhusen » Thu May 04, 2023 3:03 pm » in DFSORT/ICETOOL/ICEGENER - 16
- 4260
-
by Esmayeelhusen
View the latest post
Mon May 22, 2023 3:50 pm
-
-
- 5
- 3998
-
by sergeyken
View the latest post
Wed Jun 16, 2021 6:23 pm
-
- 7
- 11813
-
by AusZosGuy
View the latest post
Fri Sep 10, 2021 6:40 pm
-
- 1
- 6564
-
by prino
View the latest post
Mon Mar 21, 2022 8:18 pm