ignore the 3 columns from the inputfile/

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
User avatar
prakash.subramaniam
Member
Posts: 11
Joined: Mon May 18, 2009 12:52 pm
Location: India

ignore the 3 columns from the inputfile/

Post by prakash.subramaniam » Tue Jul 07, 2009 1:50 pm

Hi,

I got a new requirement, where i am going to get a input file of Record length 252 characters. But my old input file has the record length 133. So i need to remove all the records from 134 to 252 and copy it to other file which has the record length of 133 ie.. i need to omit the character from after 133.

My File type is : FB

Please help me fixing this?
prakash bhavani subramaniam.
9840187992.

maheshvamsi
Active Member
Posts: 52
Joined: Wed Mar 25, 2009 11:56 pm
Location: Banglore

Post by maheshvamsi » Tue Jul 07, 2009 3:14 pm

Try using below sort card:

Code: Select all

 OPTION COPY                           
 INREC BUILD=(1,133)
Thanks

MaheshVamsi

User avatar
prakash.subramaniam
Member
Posts: 11
Joined: Mon May 18, 2009 12:52 pm
Location: India

Post by prakash.subramaniam » Tue Jul 07, 2009 3:33 pm

Hi Maheshvamsi,
It's working good. Great thanks.
prakash bhavani subramaniam.
9840187992.

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

Post by Anuj Dhawan » Thu Jul 09, 2009 10:32 am

And how good it is to post the same question on multiple help-boards... :roll:
Regards,
Anuj

User avatar
prakash.subramaniam
Member
Posts: 11
Joined: Mon May 18, 2009 12:52 pm
Location: India

Post by prakash.subramaniam » Thu Jul 09, 2009 6:57 pm

Hi Anuj,
The Impact is very URGET. Hence posted in Multiple help-boards.
prakash bhavani subramaniam.
9840187992.

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

Post by Anuj Dhawan » Sat Jul 11, 2009 10:29 am

Well, usually this is not considered as a good habit on such Forums. However, i believe, you got a solution for this ...

Good Luck.
Regards,
Anuj

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