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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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