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
 
Changing of LRECL of a file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
abdulrafi

Active User


Joined: 14 Sep 2009
Posts: 149
Location: Coimbatore

PostPosted: Fri Mar 24, 2017 3:25 pm    Post subject: Changing of LRECL of a file
Reply with quote

Hi,

I have the below file. I have a key in first record as 21810. Similarly you can see as 21811 & 21812 down.

Can I merge my first 4 records to a single record with different LRECL ?.

Code:

                                                               
                                06F77400015908476     21810                   1*
 0559002GR GGL25L-CWZGBA  032317H 2BZMCA0055900021317                         B2*
 0083LC30                                                                       
 06    20170213                                                                 
                                06F82400015908475     21811                    1*
 0559002GR GGL20L-CWZGBA  032317H 2ZZMCA0055900021117                         B2*
 04U7LA40                                                                       
 06    20170211                                                                 
                                06F72600015908473     21812                    1*
 0559002GR GGL20L-CWZGBA  032317H 2ZZMCA0055900021017                         B2*
 01J4LB23                                                                       
 06    20170210                                                                 
                   


Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1922
Location: UK

PostPosted: Fri Mar 24, 2017 3:51 pm    Post subject:
Reply with quote

You have a data set. And, yes, you can. Read up on RESIZE.
Back to top
View user's profile Send private message
sergeyken

Active User


Joined: 29 Apr 2008
Posts: 212
Location: Maryland

PostPosted: Sun Mar 26, 2017 1:29 am    Post subject: Re: Changing of LRECL of a file
Reply with quote

abdulrafi wrote:
Can I merge my first 4 records to a single record with different LRECL ?.

1) The term "merge" (especially in SORTing environment) has a different meaning; the MERGE operation is applied to the process of merging records from several pre-sorted datasets/files into one sorted output dataset/file.

What you need is described better via the term "concatenate", or "append" several records in one single resulting record.

2) The value of LRECL is an attribute of created dataset; it has a very little relation to the operation of records concatenation; you are likely talking about concatenated record size.
LRECL of a dataset can be changed even without record concatenation, and vice versa: record concatenation can be performed while leaving the dataset LRECL unchanged (especially with RECFM=VB, but RECFM=FB too).
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts Updating data from one file to other!!! Vignesh Sid SYNCSORT 1 Mon Nov 06, 2017 2:42 pm
This topic is locked: you cannot edit posts or make replies. Need help how to pass the ESP variabl... Venkichaitu JCL & VSAM 12 Thu Nov 02, 2017 3:53 am
This topic is locked: you cannot edit posts or make replies. Comparing current time with the time ... arunsoods SYNCSORT 1 Mon Oct 30, 2017 4:07 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am

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