View previous topic :: View next topic
|
Author |
Message |
sampaul4u
New User
Joined: 27 Mar 2010 Posts: 19 Location: folirida
|
|
|
|
Hi All,
My JCL using below sort cards in 3 steps for different input files.
Sort card used in Step:1
Code: |
SORT FIELDS=COPY
OUTREC FINDREP=(IN=(C'"'),OUT=(C' '),STARTPOS=1,ENDPOS=14) |
Sort card used in Step:3
Code: |
SORT FIELDS=COPY
OUTREC FINDREP=(IN=(C'"'),OUT=(C' '),STARTPOS=40,ENDPOS=58) |
Sort card used in Step:5
Code: |
SORT FIELDS=COPY
OUTREC FINDREP=(IN=(C'"'),OUT=(C' '),STARTPOS=70,ENDPOS=88) |
Code'd : Please use Code tags while posting code/sample data
The sort cards conditions are same but the starting and ending position only differed. Is there any way to combine all the 3 sort cards into single sort card. Thanks in advance for your timely help.
Regards
Paul |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
What is the SORT product that you are using and what is the version? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Frankly , for the way You worded Your question, I do not see any reason to complicate Your life .
why would You add additional steps to build dynamically something that is pretty static ???
three different steps==> use there different sets of control cards |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Ok Just trying to understand Is your requirement to execute in single step or multiple steps or to reuse one card for multiple steps?
As per your PM I understand you are using DFSORT
As you asked how to find the DFSORT level
check this link
and paste the complete SYSOUT messages |
|
Back to top |
|
|
sampaul4u
New User
Joined: 27 Mar 2010 Posts: 19 Location: folirida
|
|
|
|
Hi Enrico,
All this three control cards planning to add newly. During the testing, As now its working fine. Thought of instead of writing three control cards can we make in a single control card since position only changed. thats why i raised this point.
Thanks
Paul |
|
Back to top |
|
|
sampaul4u
New User
Joined: 27 Mar 2010 Posts: 19 Location: folirida
|
|
|
|
Hi Pandora,
Planning to use one card in multiple steps. only the starting & ending position needs to changed. Rest of the things needs to remains the same.
Thanks
paul |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
Thought of instead of writing three control cards can we make in a single control card since position only changed. |
You already told that ...
now tell what is the expected benefit of complicating something so simple ?
You already wasted more employer' s time than needed |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
You never told your DFSORT level.....
Anyway have a look at SYMNAMES it will ensure you use one sort card but anyway to me it doesnt differ much as you need three SYMNAMES INPUT |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Why this is in the JCL section, where Syncsort queries lie, and not in the DFSort section where DFSort queries lie?
What was in the PM? You should not use PM unless especifically asked to do so - now we are missing part of the thread. Pandora-Box, can you post the PM, please? |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Nic,
This was the PM
Quote: |
Hi
I'am using DFSORT only and i'am sure about the version number. let me know how to get the version number plz...
Thanks
paul |
|
|
Back to top |
|
|
|