Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need help to create dyamic cntl cards

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Need help to create dyamic cntl cards
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

Moderator


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

PostPosted: Tue Apr 15, 2014 11:23 am    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Apr 15, 2014 12:05 pm    Post subject: Reply to: Need help to create dyamic cntl cards
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

Moderator


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

PostPosted: Tue Apr 15, 2014 12:14 pm    Post subject:
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Apr 15, 2014 12:57 pm    Post subject: Reply to: Need help to create dyamic cntl cards
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

Moderator


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

PostPosted: Tue Apr 15, 2014 1:09 pm    Post subject:
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: 1715
Location: UK

PostPosted: Tue Apr 15, 2014 2:56 pm    Post subject: Reply to: Need help to create dyamic cntl cards
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

Moderator


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

PostPosted: Tue Apr 15, 2014 3:14 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Cards mainframe developer requirement... capricorn Mainframe Jobs 0 Sun Sep 11, 2016 9:57 am
No new posts Need to create file with Dynamic Name... kapil27 JCL & VSAM 4 Wed May 25, 2016 9:45 am
No new posts How to create/edit/update a new GDG V... karthikbalakumar8 JCL & VSAM 2 Fri Feb 05, 2016 6:35 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us