Fetching two different transaction from a single file
Moderators: Frank Yaeger, Moderator Group
-
- Member
- Posts: 8
- Joined: Thu Jan 17, 2013 4:51 pm
Fetching two different transaction from a single file
Hi,
Can you tell me how to achieve this requierement in DFSort.
File contains a list of records with different transaction codes. However need to fetch only the transactions with transaction code of 24 followed by 64 or 26 followed by 64.
Thanks.
Can you tell me how to achieve this requierement in DFSort.
File contains a list of records with different transaction codes. However need to fetch only the transactions with transaction code of 24 followed by 64 or 26 followed by 64.
Thanks.
-
- Member
- Posts: 8
- Joined: Thu Jan 17, 2013 4:51 pm
-
- Active Member
- Posts: 732
- Joined: Thu May 24, 2012 4:07 am
-
- Member
- Posts: 8
- Joined: Thu Jan 17, 2013 4:51 pm
Hi,
Please find the sample data:
1)
14 TRAILER-REC 198/GRP
15 CODE 4/PS 084055
16 SUBCODE 2/NUM 0
17 REF-NO 4/PS 25086
18 SET-REF-NO 4/PS 718184
19 SET-SEQ-NO 4/PS 1
20 DATE 5/PS 20120722
21 TIME 4/PS 93223
22 TRANS-CODE 2/PS 64
2)
14 TRAILER-REC 198/GRP
15 CODE 4/PS 074005
16 SUBCODE 2/NUM 0
17 REF-NO 4/PS 25087
18 SET-REF-NO 4/PS 718184
19 SET-SEQ-NO 4/PS 2
20 DATE 5/PS 20120722
21 TIME 4/PS 91213
22 TRANS-CODE 2/PS 24
3)
14 TRAILER-REC 198/GRP
15 CODE 4/PS 073055
16 SUBCODE 2/NUM 0
17 REF-NO 4/PS 25088
18 SET-REF-NO 4/PS 718184
19 SET-SEQ-NO 4/PS 3
20 DATE 5/PS 20120722
21 TIME 4/PS 93213
22 TRANS-CODE 2/PS 64
4)
14 TRAILER-REC 198/GRP
15 CODE 4/PS 065345
16 SUBCODE 2/NUM 0
17 REF-NO 4/PS 25089
18 SET-REF-NO 4/PS 718186
19 SET-SEQ-NO 4/PS 5
20 DATE 5/PS 20120722
21 TIME 4/PS 91818
22 TRANS-CODE 2/PS 9
Here Trans-Code is key value for this requirement.
Thanks
Bala
Please find the sample data:
1)
14 TRAILER-REC 198/GRP
15 CODE 4/PS 084055
16 SUBCODE 2/NUM 0
17 REF-NO 4/PS 25086
18 SET-REF-NO 4/PS 718184
19 SET-SEQ-NO 4/PS 1
20 DATE 5/PS 20120722
21 TIME 4/PS 93223
22 TRANS-CODE 2/PS 64
2)
14 TRAILER-REC 198/GRP
15 CODE 4/PS 074005
16 SUBCODE 2/NUM 0
17 REF-NO 4/PS 25087
18 SET-REF-NO 4/PS 718184
19 SET-SEQ-NO 4/PS 2
20 DATE 5/PS 20120722
21 TIME 4/PS 91213
22 TRANS-CODE 2/PS 24
3)
14 TRAILER-REC 198/GRP
15 CODE 4/PS 073055
16 SUBCODE 2/NUM 0
17 REF-NO 4/PS 25088
18 SET-REF-NO 4/PS 718184
19 SET-SEQ-NO 4/PS 3
20 DATE 5/PS 20120722
21 TIME 4/PS 93213
22 TRANS-CODE 2/PS 64
4)
14 TRAILER-REC 198/GRP
15 CODE 4/PS 065345
16 SUBCODE 2/NUM 0
17 REF-NO 4/PS 25089
18 SET-REF-NO 4/PS 718186
19 SET-SEQ-NO 4/PS 5
20 DATE 5/PS 20120722
21 TIME 4/PS 91818
22 TRANS-CODE 2/PS 9
Here Trans-Code is key value for this requirement.
Thanks
Bala
-
- Member
- Posts: 8
- Joined: Thu Jan 17, 2013 4:51 pm
-
- Member
- Posts: 8
- Joined: Thu Jan 17, 2013 4:51 pm
Hi,
Output file should be like below
1)
14 TRAILER-REC 198/GRP
15 CODE 4/PS 084055
16 SUBCODE 2/NUM 0
17 REF-NO 4/PS 25086
18 SET-REF-NO 4/PS 718184
19 SET-SEQ-NO 4/PS 1
20 DATE 5/PS 20120722
21 TIME 4/PS 93223
22 TRANS-CODE 2/PS 64
2)
14 TRAILER-REC 198/GRP
15 CODE 4/PS 074005
16 SUBCODE 2/NUM 0
17 REF-NO 4/PS 25087
18 SET-REF-NO 4/PS 718184
19 SET-SEQ-NO 4/PS 2
20 DATE 5/PS 20120722
21 TIME 4/PS 91213
22 TRANS-CODE 2/PS 24
Output file should be like below
1)
14 TRAILER-REC 198/GRP
15 CODE 4/PS 084055
16 SUBCODE 2/NUM 0
17 REF-NO 4/PS 25086
18 SET-REF-NO 4/PS 718184
19 SET-SEQ-NO 4/PS 1
20 DATE 5/PS 20120722
21 TIME 4/PS 93223
22 TRANS-CODE 2/PS 64
2)
14 TRAILER-REC 198/GRP
15 CODE 4/PS 074005
16 SUBCODE 2/NUM 0
17 REF-NO 4/PS 25087
18 SET-REF-NO 4/PS 718184
19 SET-SEQ-NO 4/PS 2
20 DATE 5/PS 20120722
21 TIME 4/PS 91213
22 TRANS-CODE 2/PS 24
-
- Member
- Posts: 8
- Joined: Thu Jan 17, 2013 4:51 pm
-
- Member
- Posts: 8
- Joined: Thu Jan 17, 2013 4:51 pm
Sorry Nic, I have framed the wrong output. Please find the correct one.
14 TRAILER-REC 198/GRP
15 CODE 4/PS 074005
16 SUBCODE 2/NUM 0
17 REF-NO 4/PS 25087
18 SET-REF-NO 4/PS 718184
19 SET-SEQ-NO 4/PS 2
20 DATE 5/PS 20120722
21 TIME 4/PS 91213
22 TRANS-CODE 2/PS 24
3)
14 TRAILER-REC 198/GRP
15 CODE 4/PS 073055
16 SUBCODE 2/NUM 0
17 REF-NO 4/PS 25088
18 SET-REF-NO 4/PS 718184
19 SET-SEQ-NO 4/PS 3
20 DATE 5/PS 20120722
21 TIME 4/PS 93213
22 TRANS-CODE 2/PS 64
3)
14 TRAILER-REC 198/GRP
15 CODE 4/PS 074010
16 SUBCODE 2/NUM 0
17 REF-NO 4/PS 25089
18 SET-REF-NO 4/PS 718185
19 SET-SEQ-NO 4/PS 6
20 DATE 5/PS 20120725
21 TIME 4/PS 91215
22 TRANS-CODE 2/PS 26
4)
14 TRAILER-REC 198/GRP
15 CODE 4/PS 073056
16 SUBCODE 2/NUM 0
17 REF-NO 4/PS 25089
18 SET-REF-NO 4/PS 718188
19 SET-SEQ-NO 4/PS 6
20 DATE 5/PS 20120723
21 TIME 4/PS 93214
22 TRANS-CODE 2/PS 64
14 TRAILER-REC 198/GRP
15 CODE 4/PS 074005
16 SUBCODE 2/NUM 0
17 REF-NO 4/PS 25087
18 SET-REF-NO 4/PS 718184
19 SET-SEQ-NO 4/PS 2
20 DATE 5/PS 20120722
21 TIME 4/PS 91213
22 TRANS-CODE 2/PS 24
3)
14 TRAILER-REC 198/GRP
15 CODE 4/PS 073055
16 SUBCODE 2/NUM 0
17 REF-NO 4/PS 25088
18 SET-REF-NO 4/PS 718184
19 SET-SEQ-NO 4/PS 3
20 DATE 5/PS 20120722
21 TIME 4/PS 93213
22 TRANS-CODE 2/PS 64
3)
14 TRAILER-REC 198/GRP
15 CODE 4/PS 074010
16 SUBCODE 2/NUM 0
17 REF-NO 4/PS 25089
18 SET-REF-NO 4/PS 718185
19 SET-SEQ-NO 4/PS 6
20 DATE 5/PS 20120725
21 TIME 4/PS 91215
22 TRANS-CODE 2/PS 26
4)
14 TRAILER-REC 198/GRP
15 CODE 4/PS 073056
16 SUBCODE 2/NUM 0
17 REF-NO 4/PS 25089
18 SET-REF-NO 4/PS 718188
19 SET-SEQ-NO 4/PS 6
20 DATE 5/PS 20120723
21 TIME 4/PS 93214
22 TRANS-CODE 2/PS 64
-
- Active Member
- Posts: 732
- Joined: Thu May 24, 2012 4:07 am
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page