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 Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Merge 2 records sancraig16 SYNCSORT 19 Tue Mar 27, 2018 8:17 pm
No new posts Copy set of records based on condition krish.deepu SYNCSORT 2 Thu Mar 08, 2018 11:39 am
No new posts write multiple lines in PS file in cobol Balu5491 COBOL Programming 7 Wed Mar 07, 2018 10:27 am
No new posts WRITE to VSAM giving duplicate RC picus_mf CICS 1 Fri Feb 23, 2018 2:52 pm

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