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

Help required in sort


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

New User


Joined: 29 Jul 2011
Posts: 21
Location: India

PostPosted: Tue Dec 03, 2013 8:20 pm
Reply with quote

Hi Team,

My requirement is to add current date in header using DFSORT

Please find my example below for better understanding

Example:

Header to be added : "world is not enough" DATE(current date) "success"

I have written sort card in the following manner to achieve that

SORT FIELDS=COPY
OUTFIL REMOVECC,
HEADER1=(1:'world is not enough', DATE1, 28:'success')

Strangely i am getting Syntax error


Please help me
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: Tue Dec 03, 2013 9:52 pm
Reply with quote

Hello,

Suggest you post what you actually submitted (along with the jcl) and the information generated by the run so we help . . .
Back to top
View user's profile Send private message
Skolusu

Senior Member


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

PostPosted: Wed Dec 04, 2013 5:00 am
Reply with quote

You have syntax errors because

1. You have spaces between keywords
2. Date1 is NOT valid on Trailer1. You need to use DATENS keyword

Use the following control cards

Code:

//SYSIN    DD *                                                 
  SORT FIELDS=COPY                                               
  OUTFIL REMOVECC,                                               
  HEADER1=(1:'WORLD IS NOT ENOUGH ',DATENS=(4MD),28:' SUCCESS') 
//*
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 Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
Search our Forums:

Back to Top