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

Copy three files of different LRECL's


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sagar_mainframe

New User


Joined: 07 Jun 2008
Posts: 34
Location: Harrisburg, Pennsylvania

PostPosted: Thu Dec 23, 2010 12:31 am
Reply with quote

I have File 1 with LRECL = 80 ,
File 2 with LRECL = 05 ,
File 3 with LRECL = 80


I tried following code :
Code:

//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN1 DD DISP=SHR,DSN=INPUT.FILE1 /*LRECL OF 80 & has 2 records
//IN2 DD DISP=SHR,DSN=INPUT.FILE2 /*LRECL OF 05 & has 1 record
//IN2 DD DISP=SHR,DSN=INPUT.FILE3 /*LRECL OF 80 & has 4 records
//OUT DD DSN=NEW.FILE,DISP=(MOD,DELETE),...
//TOOLIN DD *
COPY FROM(IN1) TO(OUT)
COPY FROM(IN2) TO(OUT) USING(CTL1)
COPY FROM(IN3) TO(OUT)
/*
//CTL1CNTL DD *
  INREC OVERLAY=(80:X)
/*


But the above code is giving only 4 records from File 3 in the OUT file.

Could you please suggest some modifications in the above code?

Thanks,
Back to top
View user's profile Send private message
Sagar_mainframe

New User


Joined: 07 Jun 2008
Posts: 34
Location: Harrisburg, Pennsylvania

PostPosted: Thu Dec 23, 2010 12:35 am
Reply with quote

Sorry ..I used
Code:
//CTL1CNTL DD *
  INREC OVERLAY=(80:X)
in the above code
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Dec 23, 2010 12:53 am
Reply with quote

Hello,

Why is IN2 repeated with a different dsn?

I don't understand how the job created the output you describe.

It may help if you post the informational messages generated by the run.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Dec 23, 2010 1:16 am
Reply with quote

Follow on:

Might the output contain the 2 records of file 1 and the one record of file 2 times - for a total of 4 records in the output?
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Thu Dec 23, 2010 2:33 am
Reply with quote

Sagar,

Show the complete JES log for your run.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts WER247A SORTOUT HAS INCOMPATIBLE LRECL SYNCSORT 7
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top