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 13 matches
MVSFORUMS.com Forum Index
Author Message
  Topic: Convert file fields into Varchar format
jathampy

Replies: 2
Views: 693

PostForum: Utilities   Posted: Fri Aug 25, 2023 4:35 am   Subject: Convert file fields into Varchar format
Many thanks Kolusu for providing the solution. It worked.
  Topic: Convert file fields into Varchar format
jathampy

Replies: 2
Views: 693

PostForum: Utilities   Posted: Thu Aug 24, 2023 1:43 pm   Subject: Convert file fields into Varchar format
I am having a CSV file as shown below.

0001,xyz,pedfgh,zehhhee,yutte8901
0002,ABCDEE,UFGGGGGGGH,ytettetteee,9
0003,pqrst,asd,mnopql,fdghsjjss

Want to convert this file into varchar format. ...
  Topic: Convert external floating point number to COMP-2
jathampy

Replies: 4
Views: 1201

PostForum: Application Programming   Posted: Mon Aug 14, 2023 9:29 am   Subject: Convert external floating point number to COMP-2
I tried NUMVAL-F before also and it's not working. The Other intrinsic functions NUMVAL and NUMVAL-C are working fine with the compiler version 4.2.0 V4R2 . When I use NUMVAL-F,it's giving compilation ...
  Topic: Convert external floating point number to COMP-2
jathampy

Replies: 4
Views: 1201

PostForum: Application Programming   Posted: Sat Aug 05, 2023 3:47 am   Subject: Convert external floating point number to COMP-2
Thanks Kolusu for providing the solution. I tried the solution but job failed with
"IGZ0040S An invalid separate sign was detected in program" while executing the move statement " M ...
  Topic: Convert external floating point number to COMP-2
jathampy

Replies: 4
Views: 1201

PostForum: Application Programming   Posted: Wed Aug 02, 2023 11:13 am   Subject: Convert external floating point number to COMP-2
I have an input file that contain amount fields in exponential form like "-2.2204462782314e-16". I want to convert this into COMP-2 format.

Tried NUMVAL-F intrinsic function and the co ...
  Topic: Convert decimal number into Comp-3
jathampy

Replies: 3
Views: 1644

PostForum: Utilities   Posted: Thu Jul 28, 2022 7:21 am   Subject: Convert decimal number into Comp-3
Thanks Kolusu. The one mentioned in the link previously work only for two fixed decimal digits.As per the new requirement the number of digits after decimal places can vary between 0 and 4. It worked ...
  Topic: Convert decimal number into Comp-3
jathampy

Replies: 3
Views: 1644

PostForum: Utilities   Posted: Wed Jul 27, 2022 12:16 pm   Subject: Convert decimal number into Comp-3
I am having an input file with 10 amount fields that contain decimal numbers but decimal point is not always guaranteed. I need to convert each of these amount fields into COMP-3 of length 5. The maxi ...
  Topic: floating point to decimal
jathampy

Replies: 2
Views: 1151

PostForum: Utilities   Posted: Sat Jul 09, 2022 2:26 am   Subject: floating point to decimal
Many thanks kolusu. I will use COBOL program to do the same
  Topic: floating point to decimal
jathampy

Replies: 2
Views: 1151

PostForum: Utilities   Posted: Fri Jul 08, 2022 12:25 pm   Subject: floating point to decimal
I have a FB file with COMP-2 fields in it. Is it possible to convert this into decimal number in readable format using SORT without losing decimal places.?
  Topic: convert into floating point number
jathampy

Replies: 2
Views: 2165

PostForum: Utilities   Posted: Tue Oct 27, 2020 2:38 pm   Subject: convert into floating point number
Thanks Kolusu for the quick reply. I will then handle in Cobol program.
  Topic: convert into floating point number
jathampy

Replies: 2
Views: 2165

PostForum: Utilities   Posted: Tue Oct 27, 2020 2:03 pm   Subject: convert into floating point number
I am having a file with numbers stored with decimal point. I would like to convert into COMP-2 format as it need to passed to an existing cobol program for generating one report. Just want to know w ...
  Topic: leading zeroes in decimal number
jathampy

Replies: 2
Views: 2096

PostForum: Utilities   Posted: Fri Oct 04, 2019 1:20 pm   Subject: leading zeroes in decimal number
Many Thanks Kolusu. It worked.
  Topic: leading zeroes in decimal number
jathampy

Replies: 2
Views: 2096

PostForum: Utilities   Posted: Thu Sep 26, 2019 2:51 pm   Subject: leading zeroes in decimal number
I am having a file that contain decimal numbers listed below (position 1 and length 8)

189.99
1213.22
169

I need leading zeros to be in the output file as shown

00189.99
01213.22
00169.00 ...
 
Page 1 of 1
All times are GMT - 5 Hours
Jump to:  


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group