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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / dineshj

you do redefine for S9(09) COMP format

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More JCL Interview Questions

In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and want to execute step04. and once step04 is done then I want to go back and execute step03. once step03 is completed I want execute step05, 06 and so on... can any one tell me how do i do that???

10 Answers   Perot Systems,


How jcl work to handle various input output file operations?

0 Answers  


what is the difference between return code and maxcc?

2 Answers   iGate,


I have three files for one step i need to override the third file how to do that in jcl?

1 Answers   UST,


how do u define a file in cobol and jcl ?

2 Answers   TCS,






I've one sequential file, That file contains millians of Junk & CHAR recoreds example File 1 ,,,,,...,,,.....,.,.INFOSYS.....,,,,,,,,,,,WIPRO..........., ,...,..,. My questions is : I want omit the 44th posstion to 4 CHAR (WIPRO) remaining things I want output file (including Junk CHAR also)... How can we slove this problem & give me a syntax. Please provide the result as soon as possible.

5 Answers   CTS,


There are 2 steps in a JCL. If the first step abends due to system or user abend and the second step has COND specified as EVEN or ONLY, will this step still be executed inspite of the abend in the previous step?

2 Answers  


In one of intervie, my interviwer asked, I have a file which contains 4 records I would like to split the 4 different outputs for each record how to do?

14 Answers   Cap Gemini, Cognizant, JPMorgan Chase, TCS, Xansa,


What is DYNAMBR in jcl?

2 Answers   CTS,


Explain dd statement in jcl?

0 Answers  


Explain about LMGET�read a logical record from a data set

1 Answers  


delete rules in db2

1 Answers   Keane India Ltd,


Categories