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
 

 

Help required in sort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Help required in sort
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

Site Director


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

PostPosted: Tue Dec 03, 2013 9:52 pm    Post subject:
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    Post subject:
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    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 to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm
No new posts Db2 load job abending in SORT mistah kurtz DB2 4 Mon Jun 05, 2017 3:58 pm


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