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
 

 

FILE HANDLING PROBLEM IN INSURANCE CLAIM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
badal_mainframe

New User


Joined: 10 Aug 2004
Posts: 7

PostPosted: Tue Aug 10, 2004 2:34 pm    Post subject: FILE HANDLING PROBLEM IN INSURANCE CLAIM
Reply with quote

I HAVE THREE PHYSICAL SEQUENTIAL FILES-- PS1,PS2,PS3.
PS1 HAVING RECORDS
MADRID
JOHN
GEORGE
DR TOWN
HALL

PS2 HAVING RECORDS

DANNY
BEKHAM
MADRID
GILCHIST
HALL
MY PROBLEM IS --------
PS3 WILL CONTAIN RECORDS THOSE ARE IN PS1 BUT NOT IN PS2-HOW! USING ANY UTILITY U CAN ? icon_rolleyes.gif
Back to top
View user's profile Send private message

sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 151
Location: Tokyo, Japan

PostPosted: Tue Aug 10, 2004 6:44 pm    Post subject:
Reply with quote

You can try this code if you have DFSORT. Look that the input file2 has been concatenated twice.
Code:

//S1 EXEC PGM=ICETOOL
//TOOLMSG  DD SYSOUT=*
//DFSMSG   DD SYSOUT=*
//CON      DD DSN=... input file1
//         DD DSN=... input file2
//         DD DSN=... input file2
//OUT      DD DSN=... output file
//TOOLIN   DD *
   SELECT FROM(CON) TO(OUT) ON(1,87,CH) NODUPS
/*


Regards,
Sandip.
Back to top
View user's profile Send private message
sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 151
Location: Tokyo, Japan

PostPosted: Tue Aug 10, 2004 6:47 pm    Post subject:
Reply with quote

I am sorry not to mention in my above post. You should put your record length instead of "87". I have just copy paste from my code.

Regards,
Sandip.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Aug 10, 2004 10:07 pm    Post subject:
Reply with quote

You left out an important piece of info. What should P3 look like?

Regards, Jack.
Back to top
View user's profile Send private message
badal_mainframe

New User


Joined: 10 Aug 2004
Posts: 7

PostPosted: Wed Aug 11, 2004 9:45 am    Post subject:
Reply with quote

sandip_datta wrote:
You can try this code if you have DFSORT. Look that the input file2 has been concatenated twice.
Code:

//S1 EXEC PGM=ICETOOL
//TOOLMSG  DD SYSOUT=*
//DFSMSG   DD SYSOUT=*
//CON      DD DSN=... input file1
//         DD DSN=... input file2
//         DD DSN=... input file2
//OUT      DD DSN=... output file
//TOOLIN   DD *
   SELECT FROM(CON) TO(OUT) ON(1,87,CH) NODUPS
/*


thanx lot
Regards,
Sandip.
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 -> COBOL Programming 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 SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
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


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