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

how to format the record


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

New User


Joined: 24 Jul 2012
Posts: 5
Location: india

PostPosted: Mon Aug 06, 2012 3:31 pm
Reply with quote

my requirements below

input;

01
02
03
04
05
06
07
08
09
10
11
12

i need my output :


output:

01,02,03,04,05,06,07,08,09,10,11,12



how to format that above record


plz help me
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Mon Aug 06, 2012 3:42 pm
Reply with quote

ibmmainframes.com/about51950.html
ibmmainframes.com/about40081.html
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Aug 06, 2012 7:00 pm
Reply with quote

Hello,

Are you looking for a database solution or a sort solution?

The answer is not "both". . .
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Mon Aug 06, 2012 11:15 pm
Reply with quote

Assuming you want to club every 12 records into a single, use the following DFSORT/ICETOOL JCL which will give you the desired results
Code:

//STEP0100 EXEC PGM=ICETOOL                                 
//TOOLMSG  DD SYSOUT=*                                     
//DFSMSG   DD SYSOUT=*                                     
//IN       DD *                                             
01                                                         
02                                                         
03                                                         
04                                                         
05                                                         
06                                                         
07                                                         
08                                                         
09                                                         
10                                                         
11                                                         
12                                                         
13                                                         
14                                                         
15                                                         
16                                                         
17                                                         
18                                                         
19                                                         
20                                                         
21                                                         
22                                                         
23                                                         
24                                                         
//OUT      DD SYSOUT=*                                     
//TOOLIN   DD *                                             
  RESIZE FROM(IN) TO(OUT) TOLEN(36) USING(CTL1)             
//CTL1CNTL DD *                                             
  INREC IFOUTLEN=3,IFTHEN=(WHEN=INIT,OVERLAY=(3:C',')),     
  IFTHEN=(WHEN=GROUP,RECORDS=12,PUSH=(5:SEQ=8)),           
  IFTHEN=(WHEN=INIT,OVERLAY=(14:5,8,ZD,MOD,+12,EDIT=(TT))),
  IFTHEN=(WHEN=(14,2,ZD,EQ,0),OVERLAY=(3:X))               
//*
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
Search our Forums:

Back to Top