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

Interchange the position of date.


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

New User


Joined: 07 Aug 2007
Posts: 27
Location: chennai

PostPosted: Wed Feb 27, 2008 12:42 pm
Reply with quote

I want the date should be in following format

38-39 - YEAR
40-41 - MONTH
42-43 - DATE

Actual format : yymmdd

expected format : mmddyy

OUTREC FIELDS=(1:1,37,38:40,2,40:42,2,42:38,2,44:44,200)

This sort is not working...

how can i get the expected output..???


Thanks
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Feb 27, 2008 12:55 pm
Reply with quote

Is your input record FB or VB.

If VB are you sure that you are taking into account the 4 bytes RDW at the start of every record.

What results are you getting - please post
Back to top
View user's profile Send private message
thilakvs
Warnings : 1

New User


Joined: 07 Aug 2007
Posts: 27
Location: chennai

PostPosted: Wed Feb 27, 2008 1:09 pm
Reply with quote

The record is in FB format.

I am getting the Message "FIELD OUTSIDE RANGE".

I guess here is the error

OUTREC FIELDS=(1:1,37,38:40,2,40:42,2,42:38,2,44:44,200)

thanks
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Feb 27, 2008 1:26 pm
Reply with quote

What is the LRECL of your record ?
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: Wed Feb 27, 2008 2:36 pm
Reply with quote

thilakvs wrote:
I am getting the Message "FIELD OUTSIDE RANGE".
Do a favor for all of us, please post the entire sysout......
Back to top
View user's profile Send private message
thilakvs
Warnings : 1

New User


Joined: 07 Aug 2007
Posts: 27
Location: chennai

PostPosted: Wed Feb 27, 2008 3:21 pm
Reply with quote

This is the SYSOUT which i got

SORT FIELDS=(1,4,ZD,A,5,6,ZD,A,11,3,ZD,A)
OUTREC FIELDS=(1:1,37,38:40,2,40:42,2,42:38,2,44:44,200)
WER276B SYSDIAG= 1223610, 2729806, 2729806, 2521063
WER164B 2,384K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER164B 0 BYTES RESERVE REQUESTED, 992K BYTES USED
WER146B 32K BYTES OF EMERGENCY SPACE ALLOCATED
WER108I SORTIN : RECFM=FB ; LRECL= 200; BLKSIZE= 27800
WER230A OUTREC FIELD OUTSIDE RANGE
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Feb 27, 2008 3:48 pm
Reply with quote

OUTREC FIELDS=(1:1,37,38:40,2,40:42,2,42:38,2,44:44,200)

Might help you. If the LRECL is only 200 you can not move 200 bytes from byte 44, only the remainder of the record.

You could try 44:200 instead of 44:44,200
Back to top
View user's profile Send private message
thilakvs
Warnings : 1

New User


Joined: 07 Aug 2007
Posts: 27
Location: chennai

PostPosted: Wed Feb 27, 2008 3:58 pm
Reply with quote

ok i got it..Thank you... icon_biggrin.gif
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
Search our Forums:

Back to Top