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 Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
No new posts JCL sort Match and NoMatch rakeshsekar1987 SYNCSORT 2 Thu Feb 02, 2017 10:26 pm


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