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
 
Set RDW in a VB file - DFSORT

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

New User


Joined: 25 Oct 2007
Posts: 80
Location: Australia

PostPosted: Tue Oct 30, 2012 1:41 pm    Post subject: Set RDW in a VB file - DFSORT
Reply with quote

Hi,

Can i retain the RDW of the original input record to the output after i have played with OVERLAY etc beyond the actual RDW??


i have several input VB files with LRECL=1004. The files contains various types of records with different length

Sample

Code:

00000000HEADER
11111111SAADHKJHHDSKJHKJHKJHDJHKJHKJHKJDHSADUTY
22222222SDJHSAKJHDKJHSAKJHDKJSAHDKJHSDHKJH
33333333SDKJLKDJSALKJDLKSAJDLKJSADLKJLKS
11111111DLKJKJLKJASDKJKJSAKDJKSAJDLKAJLKJDLKJLL
22222222SDKJHEWOWJDOIEJUDOIJDIJEWOIDJOIJOD
33333333U4RLKIJUFKELJFLJLKJFLKJEWNJKRJLE
99999999TRAILER


i am processing these records by adding SEQNUM (at offset say 500) for certain overlay and arithmetic operations. Therefore the output records will now have RDW 500+. Is it possible to have my output with original RDW?? i know that i can use the first 8 byte record identifiers to set the length using OUTREC IFTHEN BUILD. but can i do this dynamically using the RDW from the input record rather than record identifiers?? The file has more than 90 types of records with their own lengths. If any application program changes any length, i do not think they will be able to easily find the impact on this SYSIN card.
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Tue Oct 30, 2012 2:05 pm    Post subject: Reply to: Set RDW in a VB file - DFSORT
Reply with quote

For a VB the way to do it is not to append the value somewhere, extending the records to that length if necessary, and then struggle to maintain the record-length later, but

Code:
  BUILD=(1,4,stuff which is extending the record,5)


Use that whilst you need the extra data then

Code:
  BUILD=(1,4,5)
Back to top
View user's profile Send private message
charanmsrit

New User


Joined: 25 Oct 2007
Posts: 80
Location: Australia

PostPosted: Wed Oct 31, 2012 5:37 am    Post subject:
Reply with quote

Excellent! Thanks Bill. My bad, i never thought of this
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 COB2 file processing rizwanaccy COBOL Programming 8 Tue Jan 02, 2018 1:00 pm
No new posts KSDS and Index file in cobol deepak14450 COBOL Programming 9 Fri Dec 22, 2017 9:36 am
No new posts Preserve order in Input File pshongal DFSORT/ICETOOL 13 Thu Dec 21, 2017 4:20 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am

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