REMOVE HIGH VALUE FROM THE EXTRACT FILE

Ask/Clarify the questions on ASSEMBLER language.

Moderator: Moderator Group

Post Reply
Guest

REMOVE HIGH VALUE FROM THE EXTRACT FILE

Post by Guest » Fri Feb 24, 2006 3:50 pm

Hi,

Would you please tell me what does the following code do? Can you give me any alternative to this in sort or using other utility because I don't know assembler?

Code: Select all

//SYSIN     DD *                     
01       MVC    0(4,RZ),0(RX)        
         MVC    4(6,RZ),=C'      '   
         BAL    SYSUT3(RZ)           
         END                         
/*                                   
//*                                  
Thanks.

ALCPilot
Member
Posts: 1
Joined: Wed May 07, 2008 8:55 pm

Post by ALCPilot » Fri May 09, 2008 1:10 am

Even though the original post was left in 2/2006, I'll address the question so that this post doesn't leave others hanging.

This code is not IBM assembler, but is actually the control cards to a data set utility owned by a specific outsourcing company. The utility allows extensive manipulation of files using assembler-like commands without requiring any compiler. The poster should have gone to an SME (Subject Matter Expert) within their company to answer their question.

What these SYSIN cards direct the utility to do is as follows (essentially initializes a file with a single, 10 byte record):

MOVE FIRST FOUR BYTES OF INPUT RECORD TO SAVE AREA
MOVE BLANKS TO THE NEXT SIX BYTES OF THE SAVE AREA
WRITE OUT THE SAVE AREA (PRESUMABLY 10 BYTES) TO OUTPUT

User avatar
Krishna
Site Admin
Posts: 1052
Joined: Fri Jan 27, 2006 7:50 am

Post by Krishna » Fri May 09, 2008 11:04 am

Thanks ALCPilot.

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