I have a input file.
Data like: ABCDEFGH....
i want out put file like
AB
BC
CD
DE....How can do this??
Answer Posted / sathish
//JOB CARD
//S1 EXEC PGM=SORT
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTOUT DD SYSOUT=*
//SORTIN DD *
ABCDEFGH
/*
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL REMOVECC,NODETAIL,HEADER1=(1:1,2,/,1:3,2,/,1:5,2,/,1:7,2)
/*
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what is “Cond= even” and “Cond=only”?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
Brief description of inline procedure of jcl.
Where & How Do You Code Identifier In Jcl?
Can an individual step be restricted from using all the jobs allowed cpu time?
What is the format of comment statement?
what is the purpose of coding class parameter in job statement?
How can values be passed from the job stream to an executable program?
Explain about LMQUERY�give a dialog information about a data set
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
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
How does jcl specify the job to the operating system?
Explain how can return codes be tested before execution of a job step?
write a jcl to execute a job by 7:00 am on jan 20,1986?
How to run cobol program using jcl?