Wrtite a JCL for sorting a file with start from 36 postion
lenth 9 excluding a num eq to 98768. for 3 marks mainframe



Wrtite a JCL for sorting a file with start from 36 postion lenth 9 excluding a num eq to 98768. f..

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

Post New Answer

More Programming Languages AllOther Interview Questions

what is difference between input parameter and output parameter.

1 Answers   NIIT,


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?

1 Answers  


what is difference between sap and java ?

1 Answers  


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.

1 Answers  


CPU - abbrevation

2 Answers   Mascot,


converting 41.685 to binary

1 Answers   Hughes,


what do you meant by Platform-Independent in Java?

6 Answers   Persistent,


cobol is execution r not without jcl

0 Answers   IBM,


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

1 Answers  


What is meant byStatic Variable ?

7 Answers   Mascot,


what is the difference between Windows application and Unix application?

1 Answers   Satyam,


Categories