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
 

 

reblock or change the logical record length of a dataset

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

New User


Joined: 31 Aug 2006
Posts: 57
Location: chennai

PostPosted: Fri Jan 12, 2007 12:33 pm    Post subject: reblock or change the logical record length of a dataset
Reply with quote

Hi
How to rreblock or change the logical record length of a dataset in Mainframe


anybody give example?
Back to top
View user's profile Send private message

UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 743
Location: Germany

PostPosted: Fri Jan 12, 2007 1:33 pm    Post subject: Re: reblock or change the logical record length of a dataset
Reply with quote

Hi !

Easiest way is to use a IEBGENER and copy the Dataset to a new desired
dataset. You could also use ICEMAN, Fileaid, TSO 3.3 or whatever you have.

Regards, UmeySan

Copy FB/LRECL=40 to VB/max Lrecl=44

STEP90 EXEC PGM=IEBGENER
SYSPRINT DD SYSOUT=*
SYSIN DD DUMMY
*
SYSUT1 DD DISP=SHR,DSN=IER1337.MDL00890.OUTPUT.SOND07
*
SYSUT2 DD DSN=IER1337.MDL00890.FZ022.I421,
DISP=(,CATLG,),UNIT=WORK,SPACE=(CYL,(10,10)),
RECFM=VB,LRECL=044
*
Back to top
View user's profile Send private message
mkssampathkumar
Warnings : 1

New User


Joined: 31 Aug 2006
Posts: 57
Location: chennai

PostPosted: Fri Jan 12, 2007 2:55 pm    Post subject:
Reply with quote

Hi

Thanks for ur reply.
i cant understand ur code.
I am not asking to copying
I want to reblock or change the logical record length of a dataset>the code which u gave is for copying the dataset.I also saw in TSO 3.3 option , it has only to copy the dataset.
am not finding anything to change or reblock the dataset.
Even though u specifying DD parameter after the SYSIN DD DUMMY statement.i cant understand ur code becz am a fresher for mainframe.Please reply me detail.

Thanks
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Fri Jan 12, 2007 3:16 pm    Post subject:
Reply with quote

When a dataset is copied, each record is picked up off the old dataset and layed down on the new dataset. In that process the recfm and lrecl can be changed, you just can't wave a wand and proclaim "Change foul blocksize...begone evil recfm"..... icon_eek.gif
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Fri Jan 12, 2007 5:06 pm    Post subject:
Reply with quote

It can be adjusted but will be empty, and what the use of that is icon_cry.gif If you try to REPRO it will fail because of invalid length. File MOD1 was originally 910 in length.

Quote:
//ADJUST EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//IN DD DSN=$$NL58.XML.MOD1,DISP=SHR
//OUT DD DSN=$$NL58.XML.MOD1,DISP=SHR,
// DCB=(LRECL=920,RECFM=FB,BLKSIZE=920)
//SYSIN DD DUMMY
/*
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: Fri Jan 12, 2007 9:31 pm    Post subject:
Reply with quote

Hello,

Copy the file you want reblocked to a second file.

Delete (or rename) the original file.

Rename the "new" file with the attributes you want.

TaDaa your file is "reblocked" icon_neutral.gif
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 Fail to change physical VSAM filename... jacobdng CICS 6 Fri Jan 20, 2017 12:36 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 2 Sun Nov 06, 2016 8:11 pm
No new posts Joinkeys operation when key1 and key2... Susanta DFSORT/ICETOOL 5 Wed Nov 02, 2016 5:35 pm


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