Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
REPRO records from a 247 LRECL file to a 500 byte

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
muffirulz

New User


Joined: 14 Sep 2005
Posts: 74
Location: Kentucky, USA

PostPosted: Wed Mar 21, 2007 7:46 am    Post subject: REPRO records from a 247 LRECL file to a 500 byte
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

Site Director


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

PostPosted: Wed Mar 21, 2007 7:53 am    Post subject:
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: Kentucky, USA

PostPosted: Wed Mar 21, 2007 7:44 pm    Post subject: Re: REPRO records from a 247 LRECL file to a 500 byte
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

Site Director


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

PostPosted: Wed Mar 21, 2007 7:49 pm    Post subject:
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: Kentucky, USA

PostPosted: Wed Mar 21, 2007 7:54 pm    Post subject: Re: REPRO records from a 247 LRECL file to a 500 byte
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: Kentucky, USA

PostPosted: Wed Mar 21, 2007 8:17 pm    Post subject: Re: REPRO records from a 247 LRECL file to a 500 byte
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    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 30, 2007 9:25 am    Post subject:
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    Post subject: Reply to: REPRO records from a 247 LRECL file to a 500 byte
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us