MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Date convertion

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
jayram99
Beginner


Joined: 16 Aug 2004
Posts: 52
Topics: 21
Location: falls church.va,usa

PostPosted: Fri Feb 18, 2005 9:16 am    Post subject: Date convertion Reply with quote

Hi All,

I have a date field in a file which iam extracting. If the date field is zeros , I want to replace with spaces.

This is the Sort utility i am using to extract few fields from file and also i need to to add conditions to convert the dates if zeros to spaces.
Quote:

SORT,FIELDS=(1,7,CH,A),
OUTREC FIELDS=(1:1,7,
8:8,1,
9:15,4,
13:19,6,
19:31,4,
23:35,2,
25:37,4,
29:41,6, -- If i get zeros, i should replace with spaces.
35:50,3,
38:54,3,
41:57,6,
47:63,6,
53:91,6,
59:147,6,
65:184,4,
69:249,1)


Thanks in advance.

Regards,
jayaram
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Fri Feb 18, 2005 9:26 am    Post subject: Reply with quote

jayaram99,

Change your bolded lines in your sortcard to the following
Code:

29:41,6,CHANGE=(6,C'000000',C' '),   
                NOMATCH=(41,6),           


Hope this helps..

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jayram99
Beginner


Joined: 16 Aug 2004
Posts: 52
Topics: 21
Location: falls church.va,usa

PostPosted: Fri Feb 18, 2005 3:17 pm    Post subject: Reply with quote

Kolasu,

The above condition is working fine.

Thanks for the help.

Jayaram
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group