Now when I run the job the error that comes out is:
E1 8 DSS10083E SYNTAX ERROR; ')' WAS EXPECTED.
E2 8 DSS10058E SYNTAX ERROR; PARSING STOPPED AT '' -''.
(I am posting for the 1st time, sry if its not in a proper way.)
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
Use the following JCL which will give you the desired results. I assumed that you only hae 1 record in your input file and the only fields you are interested is in pos 24 for 4 bytes. You just need the / to create multiple lines
Joined: 29 May 2009 Posts: 3 Location: Pune, India
Hi Skolusu/Frank,
Thank you both for your reply, I really appreciate it.
Skolusu, the JCL worked just fine, but I had a couple of questions about the SYSIN:
1) Is OPTION same as SORT FIELDS, here it is used for COPY only can it be used for conditions also?
2) What does BUILD do here?
Thanks again..
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
AtanuTagore wrote:
Hi Skolusu/Frank,
Thank you both for your reply, I really appreciate it.
Skolusu, the JCL worked just fine, but I had a couple of questions about the SYSIN:
1) Is OPTION same as SORT FIELDS, here it is used for COPY only can it be used for conditions also?
2) What does BUILD do here?
Thanks again..
1. OPTION COPY is equivalent to SORT FIELDS=COPY. STOPAFT=1 says to copy only the first record.
2. The build statement ensures that the output file is created with LRECL=80 (in case your input file does not have LRECL=80).