TTILD010TTIL184 015I2IL484 TTAA.P.TRN01001(+1) (,CATLG,CATLG)
TTKKD222TTIL184 015I2IL484 TTAA.P.TRN01001(+1) (,CATLG,CATLG)
TTBBD340TTIL184 016O1IL484 TTBB.P.IL.TRN18401(+1) (NEW,CATLG,DELETE)
TTCCD080TTIL184 018R1IL484 TTCC.P.IL.TRN18401(+1) (MOD,CATLG,CATLG)
TTEED777TTIL184 018R1IL484 TTCC.P.IL.TRN18401(+1) (MOD,CATLG,CATLG)
TTZZD010TTIL184P020SYSUT1 TTDD.P.IL.TRN18401(+1) (NEW,CATLG,DELETE)
TTYYD110TTIL184P020SYSUT1 TTFF.P.IL.TRN18401.FLAT (NEW,CATLG,DELETE)
TTCCD260TTIL184 017O2IL484 TTAA.P.TRN01001(+0) SHR -- File used is created by different system TTIL & TTKK
TTILD111TTIL184O019DD1 TTBB.P.IL.TRN18401(+0) (OLD,DELETE,KEEP) -- File used is created by different system TTBB
TTEED260TTIL184 017O2IL484 TTCC.P.IL.TRN18401(-12) SHR -- File used is created by different system TTCC as well by same system TTEE(TTEE entry should be discarded)
TTZZD555TTIL184 015I2IL484 TTDD.P.IL.TRN18401(+0) (OLD,DELETE,KEEP) -- File used is created by same system TTZZ hence no entry
TTXXD110TTIL184P020SYSUT1 TTFF.P.IL.TRN18401.FLAT (OLD,DELETE,KEEP) -- File used is created by different system TTYY
Expected Output
Code:
Proc-name : Dataset-Name : Inbound system
(GDG version should be discarded)
The file layout and the sample records are mentioned as stated above,
Here is my requirement.The file mentioned above has records with the Procedure name, Dataset-name(both GDG and flat file) and the disposition
of the file.I need to take the dataset name which has Disposition as [shr or (old,delete,keep or old ] and
scan against all the records which has the following Disposition as [(new,catlg,delete) or (,catlg.delete) or (MOD,CATLG,CATLG)] and if there
are any entries the corresponding system name should be marked against it(Same system name need not be captured[Starting
4 bytes of PROC represents the system name)
Please let me know the solution the same _________________ Thanks & Rgds
Dinesh
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Thu Mar 03, 2011 12:52 pm Post subject:
Dinesh Kumar,
Your Output does NOT match the requirements. How did you capture TTIL,TTKK for TTAA.P.TRN01001 dataset when the Disp for them is (,CATLG,CATLG) ? It is not in your match criteria.
The max DSN length is 44 bytes and here you only have a max of 30 bytes. Are you sure that all DSN names are less than or equal to 30 bytes?
Here is a DFSORT JCL which will just give the matched records according to your criteria. I did not show you the method of clubbing the matching records into a single line.
Thanks Kolusu. Sorry forgot to mention even the Disp (,CATLG,CATLG) also come in match criteria. Is there a way to club the matching records into a single line. Can I have the output as
Code:
Proc Name: Dataset Name :Inbound system
TTCCD260 TTAA.P.TRN01001 TTIL,TTKK
TTILD111 TTBB.P.IL.TRN18401 TTBB
TTEED260 TTCC.P.IL.TRN18401 TTCC
TTXXD110 TTFF.P.IL.TRN18401.FLAT TTYY
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Fri Mar 04, 2011 12:42 am Post subject:
Dinesh Kumar,
What is the max number of system names you can have for a dataset? What about my other question about the dataset name being 44 bytes? _________________ Kolusu
www.linkedin.com/in/kolusu
The maximum no of systems for a dataset would be 15 systems . The Dataset field is of 44 bytes but the DSN has a max of 35 bytes.
Please let me know If you need any more information on the same
TTUUD340TTIL184 016O1IL484 TTUU.P.IL.TRN18401(+1) (NEW,CATLG,DELE ------ File created is not used anywhere
TTVVD380TTIL567 016O1IL484 TTVV.P.IL.TRN77701(+0) SHR ------ File used is not created anywhere
If the above mentioned scenario exists we should not capture in our output file
(The maximum no of systems for a dataset would be 15 systems . The Dataset field is of 44 bytes but the DSN has a max of 35 bytes.
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Sun Mar 06, 2011 11:11 pm Post subject:
Dinesh Kumar wrote:
Will the above solution work if the DSN has the following set of records. The scenario is mentioned below
Dinesh Kumar,
How much time does it take to run a test with the control cards provided and know the result for yourself? _________________ Kolusu
www.linkedin.com/in/kolusu
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum