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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Changing the length (LRECL) of an exsting file in Mainframe
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Wed Nov 12, 2008 3:14 pm    Post subject: Reply to: Changing the length (LRECL) of an exsting file in
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    Post subject:
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

Senior Member


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

PostPosted: Thu Nov 13, 2008 2:29 am    Post subject:
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

Site Director


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

PostPosted: Thu Nov 13, 2008 2:54 am    Post subject:
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

Senior Member


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

PostPosted: Fri Nov 14, 2008 11:01 am    Post subject:
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

Site Director


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

PostPosted: Fri Nov 14, 2008 11:21 am    Post subject: Reply to: Changing the length (LRECL) of an exsting file in
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    Post subject:
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Fri Nov 14, 2008 3:02 pm    Post subject: Reply to: Changing the length (LRECL) of an exsting file in
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Fri Nov 14, 2008 3:11 pm    Post subject: Reply to: Changing the length (LRECL) of an exsting file in
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: 785
Location: Chennai, India

PostPosted: Fri Nov 14, 2008 3:17 pm    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Fri Nov 14, 2008 3:34 pm    Post subject: Reply to: Changing the length (LRECL) of an exsting file in
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

Site Director


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

PostPosted: Sat Nov 15, 2008 1:30 am    Post subject:
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    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 Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
This topic is locked: you cannot edit posts or make replies. Urgent Mainframe Requirments (2-10 yr... Shankar779 Mainframe Jobs 0 Sun Nov 27, 2016 1:48 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm


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