Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

VB File Matching using User Exit routine E35

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

New User


Joined: 16 Feb 2010
Posts: 3
Location: bangalore

PostPosted: Fri Oct 10, 2014 4:24 pm    Post subject: VB File Matching using User Exit routine E35
Reply with quote

Current Scenario:

Doing File Matching using User Exit routine E35.

1) Intializing Intermediate file, For each record, adding 'M' or 'U' at the last byte+1 of file if 'matching found' or "no match' respectively.

2) In Sort(E35) jcl, writing into 2 different file(dropped, Sortout) based on Last byte +1( U or M)


Code:
  SORT FIELDS=(14,4,PD,A)
  INCLUDE COND=(13,1,CH,EQ,C'K')
  MODS E35=(programA,50000,MODLIB,C)
  OUTFIL FNAMES=DROPPED,INCLUDE=(405,1,CH,EQ,C'U'),
  BUILD=(1,00404)
  OUTFIL FNAMES=SORTOUT,INCLUDE=(405,1,CH,EQ,C'M'),
  BUILD=(1,00404)
  OPTION COBEXIT=COB2
  RECORD LENGTH=(,,405)
  END



ISSUE:
For VB files, since I am Initalizing and padding additional character (or due to any other reason), length of individual records are changed to maximum record length.
But in down stream,during file validation, error occurs due to mismatch in header length.

Question:
Is there any way I can directly write into two different files without padding extra character.
Note : this is common routine, so Output file length will be passed in sysin mentioned above.

Code'd
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7255

PostPosted: Fri Oct 10, 2014 9:28 pm    Post subject: Reply to: VB File Matching using User Exit routine E35
Reply with quote

Well, you've shown no code from your EXIT, so we can't guess what you've done in there.

Certainly the BUILDs that you have will give you fixed-length variable-length records.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1722
Location: UK

PostPosted: Sat Oct 11, 2014 1:31 pm    Post subject: Reply to: VB File Matching using User Exit routine E35
Reply with quote

As it is a VB file you should be adding your flag(s) at the beginning of your record.
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us