IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need help to create dyamic cntl cards


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sampaul4u

New User


Joined: 27 Mar 2010
Posts: 19
Location: folirida

PostPosted: Tue Apr 15, 2014 10:15 am
Reply with quote

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
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Tue Apr 15, 2014 11:23 am
Reply with quote

What is the SORT product that you are using and what is the version?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Apr 15, 2014 12:05 pm
Reply with quote

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
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Tue Apr 15, 2014 12:14 pm
Reply with quote

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
View user's profile Send private message
sampaul4u

New User


Joined: 27 Mar 2010
Posts: 19
Location: folirida

PostPosted: Tue Apr 15, 2014 12:40 pm
Reply with quote

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
View user's profile Send private message
sampaul4u

New User


Joined: 27 Mar 2010
Posts: 19
Location: folirida

PostPosted: Tue Apr 15, 2014 12:52 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Apr 15, 2014 12:57 pm
Reply with quote

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 icon_cool.gif
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Tue Apr 15, 2014 1:09 pm
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Tue Apr 15, 2014 2:56 pm
Reply with quote

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
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Tue Apr 15, 2014 3:14 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts create rexx edit Macro that edits the... CLIST & REXX 3
No new posts COBOL - create and write to output fi... COBOL Programming 0
No new posts Best way to create an automated line ... TSO/ISPF 3
No new posts FD Section to Create FB or Vb File Dy... COBOL Programming 1
Search our Forums:

Back to Top