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
 

 

Sorting variable block file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Sorting variable block file
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Wed Sep 29, 2010 3:18 pm    Post subject: Reply to: Sorting variable block file
Reply with quote

odd but the topic looks a lot like
http://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: 578
Location: USA

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

ppandey07,
Refer to http://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    Post subject:
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    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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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