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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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