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
 

 

OUTREC is not working in OUTFIL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
ranjan jha

New User


Joined: 13 May 2013
Posts: 4
Location: india

PostPosted: Tue Apr 29, 2014 4:47 pm    Post subject: OUTREC is not working in OUTFIL
Reply with quote

In the below given code I'm getting proper header and proper trailer but data is missing. How can I use the OUTREC to desired output?
Code:
SORT FIELDS=(1,22,ZD,A)                                             
 OUTFIL FNAMES=TESTIN,LINES=45,                                     
 REMOVECC,NODETAIL,                                                 
 HEADER2=(2:'ACCT NO',25:'NAME',50:'DATE: ',DATE,3/5:'AUTHOR:',     
          20:'RANJAN JHA'),                                         
         OUTREC=(2:1,21,24:29,19,80:X),                             
         TRAILER1=(2:'SUMMARY FOR: ',DATE,3/,2:                     
         'TOTAL VALUE OF FEE:',TOTAL=(16,5,ZD,EDIT=($I,IIT.TT)))
Back to top
View user's profile Send private message

Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Tue Apr 29, 2014 5:03 pm    Post subject:
Reply with quote

Can you also show your input and expected output and the output you got within code tags?
Back to top
View user's profile Send private message
ranjan jha

New User


Joined: 13 May 2013
Posts: 4
Location: india

PostPosted: Tue Apr 29, 2014 5:13 pm    Post subject:
Reply with quote

input data
Code:

000001 201405890000000100000 MT101                           <               °
000002 201405890000000100001       0004199527034000500         40AD   ð00000000
000003 201405890000000100002       0004199527034000500         40CD   ð00000000
000004 201405890000000100003       0004199527034000500         41AD   ð00000000
000005 201405890000000100004       0004199527034000500         09FM   ð00000000
000006 201405890000000100005       0004199527034000500         41CD   ð00000000
000007 201405890000000100006       0004199527034000500         09FM   ð00000000
000008 201405890000000100007       0004199527034000526      Ø  40AD   ð00000000
000009 201405890000000100008       0004199527034000526         40CD   ð00000000
000010 201405890000000100009       0004199527034000526         41AD   ð00000000
000011 201405890000000100010       0004199527034000526         09FM   ð00000000

output coming

Code:
000001  ACCT NO                NAME                     DATE: 04/29/14       
000002                                                                       
000003     AUTHOR:        RANJAN JHA                                         
000004  SUMMARY FOR: 04/29/14                                               
000005                                                                       
000006  TOTAL VALUE OF FEE:$5,601.30                                                                                 

output expected
Code:


000001  ACCT NO                NAME                     DATE: 04/29/14       
000002                                                                       
000003     AUTHOR:        RANJAN JHA             
000002 201405890000000100001       0004199527034000500
000003 201405890000000100002       0004199527034000500
000004 201405890000000100003       0004199527034000500
000005 201405890000000100004       0004199527034000500
000006 201405890000000100005       0004199527034000500
000007 201405890000000100006       0004199527034000500
000008 201405890000000100007       0004199527034000526
000009 201405890000000100008       0004199527034000526
000010 201405890000000100009       0004199527034000526
000011 201405890000000100010       0004199527034000526
000012 201405890000000100011       0004199527034000526
000013 201405890000000100012       0004199527034000526
000014 201405890000000100013       0004199527034000526
000015 201405890000000100014       0004199527034000526                           
000004  SUMMARY FOR: 04/29/14                                               
000005                                                                       
000006  TOTAL VALUE OF FEE:$5,601.30
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7236

PostPosted: Tue Apr 29, 2014 5:45 pm    Post subject: Reply to: OUTREC is not working in OUTFIL
Reply with quote

I suggest that you should understand what NODETAIL does before you use it.

Also, please don't use OUTFIL OUTREC, use OUTFIL BUILD instead. They are identical, but BUILD is much clearer (find references to OUTREC in the index for your manual, and then you'll see that it can mean completely different things). BUILD always means BUILD.
Back to top
View user's profile Send private message
ranjan jha

New User


Joined: 13 May 2013
Posts: 4
Location: india

PostPosted: Wed Apr 30, 2014 10:03 am    Post subject:
Reply with quote

Thanks you Bill Woodger for your reply. now my sort is working.
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 SORT- outrec ram_vizag DFSORT/ICETOOL 10 Tue Sep 27, 2016 12:50 am
No new posts SCRNAME not working on my mainframe? mrsidhu12 TSO/ISPF 7 Thu Sep 01, 2016 2:17 pm
No new posts OUTREC FILELDS FAILS WITH ICE126A 2 ... balaji81_k DFSORT/ICETOOL 8 Sat Jul 02, 2016 1:22 am
No new posts 2 same CLIST pgm but with different n... boyti ko CLIST & REXX 5 Fri Jun 03, 2016 4:55 pm
No new posts REXX Screen not working due to LINKED... sundarkudos CLIST & REXX 1 Mon May 09, 2016 1:44 pm


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