Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Scan and write records

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
brahmanandarm

New User


Joined: 15 Jun 2009
Posts: 28
Location: bangalore

PostPosted: Fri Feb 26, 2010 7:18 pm    Post subject: Scan and write records
Reply with quote

Hi All,
I have a requirement.
I have a an FB file of lenght 80 with followign records


EREWJ505 --------- STRING(S) FOUND ----------------
QEWQJ506 --------- STRING(S) FOUND ----------------
GEREJ098 --------- STRING(S) FOUND ----------------
114 DISCARD FROM TABLE QBCE.DKALALAL
QWEWJ099 --------- STRING(S) FOUND ----------------
118 DISCARD FROM TABLE AERE.TDFASDSA
228 DISCARD FROM TABLE AERE.TREEQWER
QEEQJ03M --------- STRING(S) FOUND ----------------
113 ASSE.DAEREA6 A
EQELJAA0 --------- STRING(S) FOUND ----------------
EEREJAA9 --------- STRING(S) FOUND ----------------
QWELJADA --------- STRING(S) FOUND ----------------
136 -TERM UTIL(FDAEE1.AERWQWEA)



I would need the output as

GEREJ098 --------- STRING(S) FOUND ----------------
114 DISCARD FROM TABLE QBCE.DKALALAL
QWEWJ099 --------- STRING(S) FOUND ----------------
118 DISCARD FROM TABLE AERE.TDFASDSA
228 DISCARD FROM TABLE AERE.TREEQWER
QEEQJ03M --------- STRING(S) FOUND ----------------
113 ASSE.DAEREA6 A
QWELJADA --------- STRING(S) FOUND ----------------
136 -TERM UTIL(FDAEE1.AERWQWEA)


i.e. i need to discard records where there
ABCDJ121 --------- STRING(S) FOUND ----------------
EFGHJ502 --------- STRING(S) FOUND ----------------
REWWJ503 --------- STRING(S) FOUND ----------------
REWWJ504 --------- STRING(S) FOUND ----------------
EREWJ505 --------- STRING(S) FOUND ----------------
QEWQJ506 --------- STRING(S) FOUND ----------------
EQELJAA0 --------- STRING(S) FOUND ----------------
EEREJAA9 --------- STRING(S) FOUND ----------------
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Feb 26, 2010 9:29 pm    Post subject:
Reply with quote

Hello,

In addition to data examples, you need to post "the rules" for processing. . .

You also need to re-check the sample data. . . How can "ABCDJ121 --------- STRING(S) FOUND ---------------- " be "discarded" when it is not in the input file?
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Fri Feb 26, 2010 10:05 pm    Post subject:
Reply with quote

brahmanandarm,

It's not clear what you want to do. Please explain the "rules" for getting from input to output. Do you actually have two input files? Or just one?
Do you want to match records between the two files? Or do you want to remove records in the one file that have 'STRING(S) FOUND" not followed by another record, or what? We can't help you until you explain clearly what you're trying to do.

Also, what is the RECFM and LRECL of the input file(s). What is the starting position, length and format of each relevant field?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 22 Sun Aug 27, 2017 10:35 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us