Results 1 to 2 of 2

Thread: Modifying LRECL attribute of a GDG file

  1. #1
    Geek_Guest
    Guest

    Modifying LRECL attribute of a GDG file

    Hi, Can anybody tell me how to increase the LRECL of a GDG file? Suppose I have a GDG(0) of LRECL = 80. Can I make it to 100? Other than copying to a new file and deleting the old one, Can I modify the LRECL attribute of the existing file either programattically or otherwise?

    Thanks

    Question asked by visitor susmi


  2. #2
    Contributing Member
    Join Date
    May 2007
    Answers
    85

    Re: Modifying LRECL attribute of a GDG file

    You want to change the LRECL of a program from 80 to 100? That depends, are you going to be doing this once or many times?
    If once, just use =3.2 to allocate the larger GDG with a V01 suffix. Then =3.3 the smaller into the larger.

    If many times, code a COBOL or Assembler program to read in the smaller dataset, reformat the columns the way you want and write out the larger dataset.

    kk


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact