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 IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am
No new posts VSAM File free space sancraig16 JCL & VSAM 13 Fri Mar 30, 2018 1:02 am
No new posts Need urgent suggestion on DFSORT subratarec DFSORT/ICETOOL 6 Wed Mar 21, 2018 8:46 pm

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