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 the difference between the positional and keyword parameters? Give examples.
How do you overcome this limitation ?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u
How does jcl act on a cobol code?
Explain the function of dd name parameter with a 2 part structure; audit.report?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
List the various advantages of using jcl language?
what is “Cond= even” and “Cond=only”?
Explain the function of //jcllib statement?
Mention the types of job control statements?
I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
Explain the purpose of dd * statement in jcl?