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 

Search found 9 matches
MVSFORUMS.com Forum Index
Author Message
  Topic: FTOV with VLTRIM option
hasan

Replies: 3
Views: 8667

PostForum: Utilities   Posted: Tue Mar 06, 2012 11:19 pm   Subject: FTOV with VLTRIM option
Hi Kolusu and Frank,

You are right. It is the ISPF display that was making me feel that I have the trailing blanks.

When I just browse the file (as against to viewing it), this is what I see.
...
  Topic: FTOV with VLTRIM option
hasan

Replies: 3
Views: 8667

PostForum: Utilities   Posted: Tue Mar 06, 2012 2:39 pm   Subject: FTOV with VLTRIM option
Hi,

I am trying to convert a fixed length file to a variable length file, and while doing so I would like the trailing spaces to be removed.

Sample input data -

****** ****************** ...
  Topic: Help on SPLICE
hasan

Replies: 5
Views: 2663

PostForum: Utilities   Posted: Wed Oct 13, 2004 6:39 pm   Subject: Help on SPLICE
I have given more information about requirement on other board. We will continue there. If possible please close the topic here.

Thanks & Sorry for confusion.
  Topic: Help on SPLICE
hasan

Replies: 5
Views: 2663

PostForum: Utilities   Posted: Wed Oct 13, 2004 4:56 pm   Subject: Help on SPLICE
Kolusu,

Thanks for reply.
Yes both files may have duplicates. Appointment field is the key field which would always be unique in both files and First-Appointment can have duplicates in both files. ...
  Topic: Help on SPLICE
hasan

Replies: 5
Views: 2663

PostForum: Utilities   Posted: Wed Oct 13, 2004 4:36 pm   Subject: Help on SPLICE
I have a requirement which goes as follows.

My first input file looks like this.

Appointment First-Appointment Status
100 100 N
200 ...
  Topic: DATE Arithmetic in COBOL..(any functions)
hasan

Replies: 10
Views: 11899

PostForum: Application Programming   Posted: Wed Sep 22, 2004 1:10 pm   Subject: DATE Arithmetic in COBOL..(any functions)
With INTEGER-OF-DATE you can add/subtract integer only, not years(or not months)

e.g. I can not say

COMPUTE WS-RESULT =
INTEGER-OF-DATE(WS-CURRENT-DATE) - 3 YEARS
END-COMPUTE

t ...
  Topic: DATE Arithmetic in COBOL..(any functions)
hasan

Replies: 10
Views: 11899

PostForum: Application Programming   Posted: Tue Sep 21, 2004 1:08 pm   Subject: DATE Arithmetic in COBOL..(any functions)
Kolusu,

Sorry..I missed the links. I checked them after posting my reply. The solution suggested(by you) for leap year is simply excellent. Otherwise I can only think of all those if-else statement ...
  Topic: DATE Arithmetic in COBOL..(any functions)
hasan

Replies: 10
Views: 11899

PostForum: Application Programming   Posted: Tue Sep 21, 2004 12:46 pm   Subject: DATE Arithmetic in COBOL..(any functions)
Thanks for all solutions.

Its a pure COBOL program, no interface with DB2. I know that in DB2 its quite easy.

The problem I have is to check for leap years. I am using function INTEGER-OF-DATE a ...
  Topic: DATE Arithmetic in COBOL..(any functions)
hasan

Replies: 10
Views: 11899

PostForum: Application Programming   Posted: Mon Sep 20, 2004 5:59 pm   Subject: DATE Arithmetic in COBOL..(any functions)
Is there any way or functions in COBOL by which I can perform date arithmetic.

e.g. I want to subtract 3 YEARS from CURRENT-DATE.
Is there any function that does this. I checked in manuals, but co ...
 
Page 1 of 1
All times are GMT - 5 Hours
Jump to:  


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group