Thanks Enrico. Will try this in the morning.
One small query. Has this JCL been built considering one of the inp file as VB file right ? Also the output merge record shld be a VB record. It looks challenging to handle VB file in my case.
To merge 2 records (FB,VB) into 1 record (VB)
-
- Posts: 73
- Joined: Thu Mar 29, 2012 11:13 am
- Skillset: COBOL JCL DB2 CICS
- Referer: friend
Re: To merge 2 records (FB,VB) into 1 record (VB)
Many Thanks,
Harry
Harry
-
- Posts: 73
- Joined: Thu Mar 29, 2012 11:13 am
- Skillset: COBOL JCL DB2 CICS
- Referer: friend
Re: To merge 2 records (FB,VB) into 1 record (VB)
Thanks in advance. Much appreciated..
Many Thanks,
Harry
Harry
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: To merge 2 records (FB,VB) into 1 record (VB)
the format of the file being overlaid is pretty irrelevant for a copy operation,
this might not be the case, but You should take into account the presence of short records
the overlay might fail.
this might not be the case, but You should take into account the presence of short records
the overlay might fail.
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
-
- Global moderator
- Posts: 3805
- Joined: Tue Jan 25, 2011 12:02 am
- Skillset: Easytrieve Plus, Cobol, Utilities, that sort of stuff
- Referer: Google
Re: To merge 2 records (FB,VB) into 1 record (VB)
As long as there is no attempt to overwrite the first four bytes of the record, where the RDW lives, is is nothing special about an OVERLAY with regards to variable-length records.
The other two-step solution is to generate a symbol from your fixed-length record, and just use the generated symbol in the second step.
The other two-step solution is to generate a symbol from your fixed-length record, and just use the generated symbol in the second step.
-
- Posts: 73
- Joined: Thu Mar 29, 2012 11:13 am
- Skillset: COBOL JCL DB2 CICS
- Referer: friend
Re: To merge 2 records (FB,VB) into 1 record (VB)
Thanks All.. It helped a lot.
Apologies for late reply
Apologies for late reply
Many Thanks,
Harry
Harry
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Merge multiple fixed length files of different record length
by corvette1982 » Mon Mar 01, 2021 11:46 pm » in JCL - 8
- 5277
-
by willy jensen
View the latest post
Tue Mar 02, 2021 3:02 am
-
-
-
Create multiple records based on one record within a file.
by chillmo » Thu Aug 11, 2022 3:54 am » in Syncsort/Synctool - 5
- 7688
-
by sergeyken
View the latest post
Fri Aug 12, 2022 2:23 am
-
-
- 8
- 6127
-
by kbabu
View the latest post
Mon Mar 15, 2021 8:25 am
-
- 1
- 1840
-
by sergeyken
View the latest post
Mon Nov 23, 2020 7:25 pm
-
-
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
- 4205
-
by Esmayeelhusen
View the latest post
Mon May 22, 2023 3:50 pm
-