Posted: Thu Mar 13, 2008 2:36 am Post subject: Insert 3 bytes in a sequential file
I want to include records which is present in 9th position(length is of 2 bytes) and then insert 3 bytes in the ouput file starting from the 1st position and then followed by the data that is present in the input file
For Example:If the data in the 9th position is 'XX' then insert '001' in the 1st position of the output file followed by the remaining datas of the input file OR if the data in the 9th position is 'YY' then insert '002' in the 1st position of the output file followed by the remaining datas of the input file OR if the data in the 9th position is 'ZZ' then insert '002' in the 1st position of the output file followed by the remaining datas of the input file.
Can this be achieved using INCLUDE and OUTREC, If so can someone give the syntax?
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
Posted: Thu Mar 13, 2008 4:47 am Post subject:
JCL does not have INCLUDE or OUTREC statements. You should have posted in the Utilities section where questions relating to a sort utlity should reside. Now that it IS here, though, do NOT repost. People will find it whislt looking at JCL problems. _________________ Utility and Program control cards are NOT, repeat NOT, JCL.
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
Posted: Fri Mar 14, 2008 4:52 am Post subject:
Woops! Just remembered - JCL DOES have an INCLUDE statement! I've been writing JCL for 35 years and I forgot about that - but I never use INCLUDE for real partly because the Powers That Be don't like 'new-fangled' things and partly because I like to see everything in one place. _________________ Utility and Program control cards are NOT, repeat NOT, JCL.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum