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

DFSORT question


IBM Mainframe Forums -> HomeWorks & Requests
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
JAWAHAR HUSSAIN

New User


Joined: 16 Feb 2010
Posts: 1
Location: New york

PostPosted: Tue Feb 16, 2010 9:14 pm
Reply with quote

Hi,

My input is
HDR1
DETAIL1
DETAIL2
DETAIL3
DETAIL4

and the output needs to be

DETAIL1 HDR1
DETAIL2 HDR1
DETAIL3 HDR1
DETAIL4 HDR1

I am trying this iceman but not in success.

//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD *
HDR1
DETAIL1
DETAIL2
DETAIL3
DETAIL4
//SORTOUT DD SYSOUT=*
//SYSIN DD *
INREC IFTHEN=(WHEN=GROUP,BEGIN=(1,4,CH,EQ,C'HDR1'),
PUSH=(77:1,4))
OPTION COPY
OUTREC BUILD=(1,80)
/*

Please provide inputs
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon May 17, 2010 9:19 pm
Reply with quote

remove OUTREC BUILD
Instead add
OUTFIL OMIT=(1,4,CH,EQ,C'HDR1')
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 -> HomeWorks & Requests

 


Similar Topics
Topic Forum Replies
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts DFsort help with SUM() DFSORT/ICETOOL 12
No new posts Question for file manager IBM Tools 7
Search our Forums:

Back to Top