How do you convert negative packed decimal number to positive PD using JCL?

Showing Answers 1 - 5 of 5 Answers

Culver_lake

  • Mar 18th, 2006
 

JCL is not a programming language, it's a script language for executing programs and defining data that programs use. Write a COBOL program to multiply the negative numbers by -1. Then use JCL to execute the program.

  Was this answer useful?  Yes

Rajeev Gupta

  • Jul 12th, 2006
 

There is no provision in JCL to convert the sign, but you can write a sort step to change the sign and this sort step can be run in a JCL. What you would have to do to change the sign is to change the last byte of the packed decimal field from 'XC' to 'XD', where X is a given number varying from 0 to 9.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions