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

Dateformat TT.MM.YY via Syncsort


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Thu Jan 08, 2009 5:53 pm
Reply with quote

Hi Gent's

I would like to have the German-Date-Format via Syncsort
in form of TT.MM.YY or TT.MM.YYYY

What i can get with the "DATE" operand in Syncsort, is the actual Date in form of MM/TT/YY.

Is there another operand ???
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Thu Jan 08, 2009 5:58 pm
Reply with quote

Hello,

Which SyncSort version are you using?
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Jan 08, 2009 7:41 pm
Reply with quote

Assuming the TT is the normlly expected DD,
SyncSort for z/OS 1.2 Programmer’s Guide wrote:
&DATE=(m1m2m3m4)
This form of the &DATE subparameter generates the current system date and controls the formatting of the date. You can specify the position of the year, month, and date, specify a separator character, and choose between 2-digit and 4-digit year representation.
The positions m1 through m4 represent masks used to format the date. To specify the position of the month, day, and year, replace the m1, m2, and m3 positions, in any order, with M for the month (01-12), D for the day (01-31), and either Y or 4 for the year (where Y is a 2-digit year and 4 is a 4-digit year). Replace the m4 position with a separator character.
For example, to print the date with the form yy-mm-dd, specify &DATE=(YMD-). For December 31, 1999, the date would appear as “99-12-31”.
The field for this form of &DATE requires 8 bytes for a 2-digit year representation and 10 bytes for a 4-digit year. The M, D, and Y or 4 may only appear once in the mask. All four positions must be specified.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Fri Jan 09, 2009 4:11 pm
Reply with quote

Hi !

Thank's a lot & nice weekend !!!
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Count Records with a crietaria in a f... DFSORT/ICETOOL 5
No new posts DFSORT/SYNCSORT/ICETOOL JCL & VSAM 8
No new posts Syncsort "Y2C" Function SYNCSORT 1
No new posts Arithmetic division using Syncsort SYNCSORT 6
Search our Forums:

Back to Top