IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FILE HANDLING PROBLEM IN INSURANCE CLAIM


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 150
Location: Tokyo, Japan

PostPosted: Tue Aug 10, 2004 6:44 pm
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: 150
Location: Tokyo, Japan

PostPosted: Tue Aug 10, 2004 6:47 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 8
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top