IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Sorting variable block file


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ppandey07

New User


Joined: 27 Nov 2008
Posts: 51
Location: Delhi, India

PostPosted: Wed Sep 29, 2010 2:52 pm
Reply with quote

I have a variable block file where a “$” marks the beginning of a new record and records are split over multiple rows. This is how couple of records in the file look like:

${1:F01NWBKUSUSDXXX2580037162}
0}}{5:{CHK:D015C98706D7}.
${1:F01NWBKUSUSDXXX2580037162}
05:E}{332:0
0}}{5:{CHK:{SYS:}}.

Now I want to write a job so that these 2 records are written on 2 rows instead of splitting over multiple rows. This is how the output will look like:

${1:F01NWBKUSUSDXXX2580037162}0}}{5:{CHK:D015C98706D7}.
${1:F01NWBKUSUSDXXX2580037162}05:E}{332:00}}{5:{CHK:{SYS:}}.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Sep 29, 2010 3:18 pm
Reply with quote

odd but the topic looks a lot like
ibmmainframes.com/viewtopic.php?t=51459

it would be nice if people working in the same organization would coordinate their forum posting
in order to avoid duplicate posts on the same issue and wasting people time in replying to many posts when the issue is really ONE
Back to top
View user's profile Send private message
sqlcode1

Active Member


Joined: 08 Apr 2010
Posts: 577
Location: USA

PostPosted: Wed Sep 29, 2010 11:06 pm
Reply with quote

ppandey07,
Refer to ibmmainframes.com/viewtopic.php?t=51459 for solution.

Thanks,
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Sep 29, 2010 11:19 pm
Reply with quote

and both of you learn that:

ROWS is a DB2 term
RECORDS is a file term.

good chance that there was no coordination because each speaks in his own
technical dialect, so no one understands what the other is doing.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top