A file has dta in S9(09) COMP format. How do I move the
data into a character field X(10)?

Answer Posted / shaik

COMP is a binary format, if you directly redefines, it
won't give proper value. So, move S9(09) COMP to s9(09)
Numeric field, then Redefine this field with Alphanumeric.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

is there any way to execute more than one proc in the same exec statement at the same time..?

2088


1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat

7061


if the submitter of a job wants to inform another user about the job completion, how can it be done?

737


What is the function of the dd dcb keyword?

806


Is their any set of rules for dd? Explain.

641






What happens if both JOBLIB & STEPLIB is specified ?

593


Explain about LMQUERY�give a dialog information about a data set

887


How can the disposition of sysout datasets be set for an entire jobstream?

823


Differentiate between the joblib and the steplib statements?

844


Define concatenating?

650


a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?

601


what is DD statement is used in JCL?

665


write a jcl to execute a job by 7:00 am on jan 20,1986?

677


The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?

921


How jcl work to handle various input output file operations?

642