Please find my requirement below
1. I want to take Current GDG as input which has date which is in PD format. When I view that file it shows date in HEX format.
2. Same date I want to convert it into Julian format
3. I want to write Input date in output file. Julian and Gregorian format.
Need help.
JCL Convert date PD --> Julian
-
- Global moderator
- Posts: 2105
- Joined: Thu Jun 03, 2010 6:21 pm
- Skillset: Assembler, JCL, utilities
- Referer: zos.efglobe.com
Re: JCL Convert date PD --> Julian
- The purpose of JCL is to instruct the system as to the resources required to run a program. JCL, by itself cannot process or manipulate data in any way. Only programs can process data or manipulate data.
- Just exactly what do you mean by "Julian date." The yyddd or cyyddd date used in the operating system is not a Julian date, and never was a Julian date, though it was improperly called a Julian date in the past.
- Only a program can manipulate or process data. Period. End of story.
Re: JCL Convert date PD --> Julian
Can we do it using SORT ?
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: JCL Convert date PD --> Julian
here is a link to DFsort manuals, staring from
https://www.ibm.com/support/pages/dfsort
and proceeding to
https://www.ibm.com/support/pages/dfsor ... ons#ZOSREF
probably not the latest ones but more than enough for the TS needs
here are two papers that provide more hints
DFSORT: Beyond Sorting
https://www.ibm.com/support/pages/beyon ... r-sortbynd
Smart DFSORT Tricks
https://www.ibm.com/support/pages/smart-dfsort-tricks
https://www.ibm.com/support/pages/dfsort
and proceeding to
https://www.ibm.com/support/pages/dfsor ... ons#ZOSREF
probably not the latest ones but more than enough for the TS needs
here are two papers that provide more hints
DFSORT: Beyond Sorting
https://www.ibm.com/support/pages/beyon ... r-sortbynd
Smart DFSORT Tricks
https://www.ibm.com/support/pages/smart-dfsort-tricks
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
- sergeyken
- Posts: 458
- Joined: Wed Jul 24, 2019 10:12 pm
- Skillset: Assembler, JCL, Utilities, PL/I, C/C++, DB2, SQL, REXX, COBOL, etc. etc. etc.
- Referer: Internet search
Re: JCL Convert date PD --> Julian
steve-myers wrote:
- The purpose of JCL is to instruct the system as to the resources required to run a program. JCL, by itself cannot process or manipulate data in any way. Only programs can process data or manipulate data.
Real recommendations on answering interview questions for JCL positions
2) Explain what is the use of JCL?
•It is used for the deleting creating, the Data Sets, GDG’S and VSAM clusters.
•It is used for comparing the files and PDS members
•It is used for compiling and executing the programs which includes batch programs as well
•It is used for merging and sorting of file data

Javas and Pythons come and go, but JCL and SORT stay forever.
-
- Global moderator
- Posts: 2105
- Joined: Thu Jun 03, 2010 6:21 pm
- Skillset: Assembler, JCL, utilities
- Referer: zos.efglobe.com
Re: JCL Convert date PD --> Julian
sergeyken wrote:2) Explain what is the use of JCL?
•It is used for the deleting creating, the Data Sets, GDG’S and VSAM clusters.
•It is used for comparing the files and PDS members
•It is used for compiling and executing the programs which includes batch programs as well
•It is used for merging and sorting of file data
Who came up with some of these "uses?"
- JCL can delete data sets. No argument. JCL can allocate space for data sets and data sets that are members of a GDG. JCL cannot create a GDG index. JCL cannot store data in a data set; it can direct the system to run a program that stores data in a data set.
- JCL can direct the system to run a program that compares the contents of a data set and the contents of another data set. Comparing the contents of data sets is done only by a program.
- JCL does not compile anything. It directs the system to run a program that compiles other programs, as well as a program that prepares the binary output of a program that compiles a program so it can be executed by the sysyem.
- JCL directs the system to run programs that merge or sort data.
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: JCL Convert date PD --> Julian
I like to think of JCL as a memo from me to the operating system requesting the operating system to carry out some tasks, listing the resources needed to carry out the task. So JCL asks for something to be done - it does not do it itself.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
-
- Similar Topics
- Replies
- Views
- Last post
-
- 2
- 1565
-
by sergeyken
View the latest post
Sun Jan 26, 2025 3:07 am
-
- 2
- 8417
-
by prino
View the latest post
Sat Mar 13, 2021 4:47 am
-
- 3
- 3804
-
by sergeyken
View the latest post
Thu Mar 25, 2021 7:12 pm
-
- 3
- 1482
-
by sergeyken
View the latest post
Sun Nov 29, 2020 6:47 am
-
-
Convert fixed-length input records to variable-length output
by xcspg3 » Wed Oct 23, 2024 1:45 pm » in DFSORT/ICETOOL/ICEGENER - 5
- 1429
-
by sergeyken
View the latest post
Wed Oct 30, 2024 1:09 pm
-