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

REPRO records from a 247 LRECL file to a 500 byte


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
muffirulz

New User


Joined: 14 Sep 2005
Posts: 74
Location: Atlanta, (USA)

PostPosted: Wed Mar 21, 2007 7:46 am
Reply with quote

I want to repro records from a 247 LRECL file to a 500 byte output file...How do I do this using REPRO..
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: Wed Mar 21, 2007 7:53 am
Reply with quote

Hello,

Is this a sequential file or a vsam file?

If you intend to use REPRO, i do not believe REPRO is a parameter for the sort.

Please provide more detail about your files.
Back to top
View user's profile Send private message
muffirulz

New User


Joined: 14 Sep 2005
Posts: 74
Location: Atlanta, (USA)

PostPosted: Wed Mar 21, 2007 7:44 pm
Reply with quote

I want to copy from a flat file to flat file using repro but output file LRECL is bigger.
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: Wed Mar 21, 2007 7:49 pm
Reply with quote

Hello,

Is there some reason not to use IEBGENER or SORT? Both of them run faster than IDCAMS icon_confused.gif
Back to top
View user's profile Send private message
muffirulz

New User


Joined: 14 Sep 2005
Posts: 74
Location: Atlanta, (USA)

PostPosted: Wed Mar 21, 2007 7:54 pm
Reply with quote

Hi,

Well we ahve a pre-defined proc running in production which uses REPRO command and we are required to pass the datacard and the files. Hence I am trying to reduce the overhead of building a new proc step and modify other elements.
Back to top
View user's profile Send private message
muffirulz

New User


Joined: 14 Sep 2005
Posts: 74
Location: Atlanta, (USA)

PostPosted: Wed Mar 21, 2007 8:17 pm
Reply with quote

actually there is existing job which uses repro..so i cant change that job much...only LRECL..is it not possible thru REPRO..
Back to top
View user's profile Send private message
siddesh623

New User


Joined: 23 Aug 2007
Posts: 8
Location: Bangalore

PostPosted: Wed Aug 29, 2007 3:52 pm
Reply with quote

hi,

i think to use repro, both flat files must have same record length. otherwise it will throw error code 39 (record length mismatch)

pls suggest me, if i am wrong.
Back to top
View user's profile Send private message
zensa

New User


Joined: 21 Feb 2007
Posts: 10
Location: India

PostPosted: Wed Aug 29, 2007 6:30 pm
Reply with quote

A return code of 8 will arise if there is a mismatch in length of Input and

Output files...

File status 39 arises for mismatch between logical and Physical file

declarations....
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Aug 30, 2007 9:25 am
Reply with quote

muffirulz

What happened when you tried it.

You have tried it yourself - haven't you.
Back to top
View user's profile Send private message
Raghavendra P K

New User


Joined: 24 Aug 2007
Posts: 24
Location: bangalore

PostPosted: Thu Aug 30, 2007 5:16 pm
Reply with quote

Hi ,
If you use repro for copying the file you will get the below mentioned error.



**********************************
IDCAMS SYSTEM SERVICES TIME: 12:43:06

REPRO INFILE(PKFILE) OUTFILE(BKPFILE)
IDC3302I ACTION ERROR ON XG00.OUT
IDC3309I ** RECORD X'8181818181' NOT WRITTEN. LENGTH INVALID
IDC0005I NUMBER OF RECORDS PROCESSED WAS 0
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8

IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 8
Back to top
View user's profile Send private message
Raghavendra P K

New User


Joined: 24 Aug 2007
Posts: 24
Location: bangalore

PostPosted: Thu Aug 30, 2007 5:19 pm
Reply with quote

If you use DFSORT it works fine.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 0
No new posts WER247A SORTOUT HAS INCOMPATIBLE LRECL SYNCSORT 6
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
Search our Forums:

Back to Top