SORT program

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
hariprasdkc
Member
Posts: 10
Joined: Fri May 08, 2009 11:55 am

SORT program

Post by hariprasdkc » Fri May 08, 2009 12:07 pm

Hi Can ne1 give me a program to do the followin...n briefly explain it please...

Scenario - 1:
Compare File 1 ,File 2 from Column 5 to 15 and write the Matched Records of File1 in File 3 and the remaining in File 4. Compare must be done in such a way that each and every record of File1 must be compared with all records of File 2. Refer to DFSORT manual in IBM Website for Syntax of the SORT Utilities.

Scenario ? 2 :

File -1 :
ABCD1111EFGH
TTTTT1111DDDD
File 1 is given as Input to the Sort step and 1111 must be replaced by XXXX and written to a new output file File-2
Hariprasd KC

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Fri May 08, 2009 3:12 pm

Ok, there is a solution but I did not get why did you mention this
2. Refer to DFSORT manual in IBM Website for Syntax of the SORT Utilities.
in yourt post. This is for us or you wanted to say "I've referred DFSORT manual on IBM Website for Syntax of the SORT Utilities but could not get the desired results" . . . :?
Regards,
Anuj

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Fri May 08, 2009 4:06 pm

Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

hariprasdkc
Member
Posts: 10
Joined: Fri May 08, 2009 11:55 am

Post by hariprasdkc » Thu May 14, 2009 9:29 am

Thank you very much... :mrgreen:
Hariprasd KC

hariprasdkc
Member
Posts: 10
Joined: Fri May 08, 2009 11:55 am

Post by hariprasdkc » Thu May 14, 2009 9:33 am

Anuj it was a scenraio question given for me...I just copied n pasted it...It was given so that i can refer...Ne way thanks for the reply... :oops:
Hariprasd KC

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Thu May 14, 2009 12:01 pm

Not to worry -- but keep in mind, on such boards only communcation media is what you write here..post here; unless you represent the things in well constructed manner there are less chances of getting better answer.

PS.I understand English is not our native language but we can manage well with it . . . :).

Have a good one,

academyindia4

Topic deleted by Admin

Post by academyindia4 » Fri Jan 15, 2016 10:00 pm

<< Content deleted By Admin >>

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others