Wrtite a JCL for sorting a file with start from 36 postion
lenth 9 excluding a num eq to 98768. for 3 marks mainframe
Answer / Deepak Diwakar
Here is an example of a JCL (Job Control Language) script for sorting a file starting from position 36, with a length of 9, excluding numbers equal to 98768 on the IBM Mainframe:
//SORTJOB EXEC PGM=SORT
//SYSDUMMF DD DISP=SHR,DSN=SYS1.LIB
//DATADD DD DISP=(,), DSOr=MYDATA.TXT
//SORTEDDD DD DISP=SHR,DSOr=MYDATA.SORT
//SORT INPUT=(DATADD) OUTPUT=(SORTEDDD)
//START-STEP1 EXEC SQL SET OPTION COBOL OVERRIDE;
// SELECT * FROM MYDATA WHERE LENGTH(COLUMN1) = 9 AND COLUMN1 != '98768'
// FORMAT IBMDFNL
// SORT FILE=MYDATA USING COLUMN1 FROM 36 BY 9 INTO OUTFILE;
//END-STEP1
| Is This Answer Correct ? | 0 Yes | 0 No |
what is difference between input parameter and output parameter.
how to swap all the values without using temporary variable. tha values r a = 20, x=60 and p=2.
5 Answers DST Global Solutions, iGate,
what is the diffrence between software and hardware language?
what is difference between sap and java ?
Q2. A memory location has physical address D5687h. Compute: a. The offset address if the segment number is D445h. b. The segment number if the offset address is B577h.
CPU - abbrevation
converting 41.685 to binary
what do you meant by Platform-Independent in Java?
cobol is execution r not without jcl
what are the activities you enjoy most and How do you see these Developing in the Future with Reference to in your work life and in your personal life
What is meant byStatic Variable ?
what is the difference between Windows application and Unix application?