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
I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.
What does a disposition of (new,catlg,keep) for a dsn mean?
What are steplib and joblib? What for they are used?
what is SOC4 error?
Is there any command to check wether the ps file is in sorted order?
Brief description of inline procedure of jcl.
Explain how can a jobs execution priority be modified?
Is condition checking possible in jcl? If yes, how?
What do you understand by jcl?
In sms datasets, what is the function of the dd avgrec keyword?
what operation is performed by job statement?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
Explain the purpose of dd * statement in jcl?
What is one line to pass PARM from JCL to COBOL?
a dd statement has 2 types of parameters. Name them?