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
 

 

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: 7315

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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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