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

Changing the length (LRECL) of an exsting file in Mainframe


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

New User


Joined: 11 Nov 2008
Posts: 30
Location: Bangalore

PostPosted: Wed Nov 12, 2008 3:00 pm
Reply with quote

Hi,

Can we change the record length of an existing file in mainframe? Like suppose the LRECL is 100, can we make it to 300? If yes, how? icon_confused.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Wed Nov 12, 2008 3:14 pm
Reply with quote

by using an utility &SORT ( for example )
copy it to a new dataset with the required record lenght and a proper filling...

search the forums for examples

NO, it cannot be done in place
Back to top
View user's profile Send private message
Swetalina

New User


Joined: 11 Nov 2008
Posts: 30
Location: Bangalore

PostPosted: Wed Nov 12, 2008 4:26 pm
Reply with quote

OK.That means we can't change LRECL directly. We need to use the copy and sort option. My doubt is solved..Thanks.. icon_smile.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Thu Nov 13, 2008 2:29 am
Reply with quote

Hi,

Pardon my ignorance - what is resolved here.. icon_neutral.gif . What does this
Quote:
That means we can't change LRECL directly
mean ? Were you thinking that the information shown under "Data Set Information" (when we use "I" or "S" to get the DSN info on 3.4) is editable or not.. icon_confused.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Nov 13, 2008 2:54 am
Reply with quote

Hi Anuj,

Quote:
That means we can't change LRECL directly. We need to use the copy and sort option. My doubt is solved..
It all needs to be read together, not broken apart.

Swetalina confirmed understanding that lrecl of an existing file cannot be edited/changed. To accomplish an lrecl change, the file needs to be re-created (i.e. sort)
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Fri Nov 14, 2008 11:01 am
Reply with quote

Hi Dick,

Seems "these stupid meetings" in office are still having their impact on me..

Sorry to bother you Swetalina.

-Ad
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Nov 14, 2008 11:21 am
Reply with quote

Quote:
Seems "these stupid meetings" in office are still having their impact on me..
Meetings - the curse of the technical class. . . icon_rolleyes.gif

d
Back to top
View user's profile Send private message
srvk_2k2

New User


Joined: 07 May 2008
Posts: 36
Location: Chennai

PostPosted: Fri Nov 14, 2008 2:56 pm
Reply with quote

why can't we use DSRESIZE command from ISPF?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Fri Nov 14, 2008 3:02 pm
Reply with quote

probably because ISPF does not provide such command icon_smile.gif

just to be sure I didn' t skip some ISPF release
could You please post the link to the ispf manuals where the command is described?
thank You

anyway inferring from the name the most You might get from such a command
is to change the allocation parameters, a smarter version of the free unallocated space
Back to top
View user's profile Send private message
srvk_2k2

New User


Joined: 07 May 2008
Posts: 36
Location: Chennai

PostPosted: Fri Nov 14, 2008 3:07 pm
Reply with quote

My ISPF version is 5.8 and i'm using this command often.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Fri Nov 14, 2008 3:11 pm
Reply with quote

looks like IBM search engine on the ISPF bookshelf disagrees

Quote:

Search results for shelf: ISPZPM70 "z/OS V1R10.0 ISPF"
0 documents have matches for: DSRESIZE
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Fri Nov 14, 2008 3:17 pm
Reply with quote

Hi,

Perhaps, DSRESIZE is in-house option/tool.

We have CHGALLOC to change the allocation parameters.

Code:
                             Change or Allocate                                 
                                                                               
 Type the new value for the desired fields and press Enter.                     
                                                                               
       Old dataset name: 'GNANAS.$FIRST.INFO'                                   
       New dataset name: 'GNANAS.$TEST.INFO'                                   
                                                                               
            Space units: T  B. Blocks        Record format: 6  1. F      5. V   
                            T. Tracks                          2. FB     6. VB 
                            C. Cylinders                       3. FBA    7. VBA
                                                               4. U      8. VBM
       Primary quantity: 1                                                     
     Secondary quantity: 15                  Data blocking: N                   
       Directory blocks:            Blocking record length:                     
             Block size: 32004                                                 
          Record length: 32000                                                 
                                                             --Current Size--   
          Volume serial: DSS047                              Allocated   Used   
            Device type: 3390              # of TRACKS    :    1         1     
           Organization: PS                 Directory blks:                     
          Creation date: 05-30-2008                Extents:    1               
        Expiration date: 0                         Members:               
Back to top
View user's profile Send private message
srvk_2k2

New User


Joined: 07 May 2008
Posts: 36
Location: Chennai

PostPosted: Fri Nov 14, 2008 3:18 pm
Reply with quote

It may be avilable as a system extra/special private standards..I'm not sure...
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Fri Nov 14, 2008 3:34 pm
Reply with quote

general consideration on

please post only things you are sure about

nobody should expect that a command invoked thru ISPF
is a standard ISPF command,

there are lots of addons to ISPF ( free or fee )
and not all of them are available to everybody,

so the best advice is to post commands available in the base IBM products
in order to avoid any useless back and forth of the type...

Quote:
use this
i tried and i got abend s806
in what library is
it' s in "FOO.BAR"
I do not have, how do I get it
......
37 more useless messages


P.S.
did You notice my signature, before posting I always search, TO BE SURE
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Sat Nov 15, 2008 1:30 am
Reply with quote

Hello,

Quote:
My ISPF version is 5.8 and i'm using this command often.
Yes, many site-specific tools are used often (which is why they were created/bought).

Many people who have not worked on multiple computers come to "know" that what they do is what everyone (even elsewhere) can do.

Many of the site-specific tools never mention that they are not part of the standard tso/ispf environment. They are invoked just as though they were "standard".
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 Unable to interpret a hex value to De... COBOL Programming 7
No new posts how to eliminate null indicator value... DB2 7
No new posts Get RECORD LENGTH, allocated space of... CLIST & REXX 7
No new posts Email attachment from mainframe is empty PC Guides & IT News 9
No new posts Format Binary file to EBCDIC JCL & VSAM 4
Search our Forums:

Back to Top