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 Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


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